Displaying 9 results from an estimated 9 matches for "ov_ebadheader".
2003 Jul 23
3
ov_open returning OV_EBADHEADER
Hi there.
I'm having this problem when trying to open the stream to play it. What I'm
doing is the following:
    archivo_original = fopen(Archivo.c_str(), "r");
    if (archivo_original == NULL) {
      if (EventLog)
        EventLog->WriteString(Format("No se pudo abrir el archivo %s",
ARRAYOFCONST((Archivo))));
      WaveOut->Stop();
      return;
    }
   
2001 Feb 04
2
Am I missing something?
...ll start
reading uninitialized memory.
The relevant part of _fetch_headers() is here:
  i=0;
  while(i<3){
    ogg_stream_pagein(&vf->os,og_ptr);
    while(i<3){
      int result=ogg_stream_packetout(&vf->os,&op);
      if(result==0)break;
      if(result==-1){
        ret=OV_EBADHEADER;
        goto bail_header;
      }
      if((ret=vorbis_synthesis_headerin(vi,vc,&op))){
        goto bail_header;
      }
      i++;
    }
    if(i<3)
      if(_get_next_page(vf,og_ptr,1)<0){
        ret=OV_EBADHEADER;
        goto bail_header;
      }
  }
  return 0; 
Also, notice that...
2002 Apr 01
1
Fw: ov_open failing with all files
Hi,
I'm experiencing (what I think), is an odd problem. Whenever I try to open a
plain ogg file with the code below, it is failing with OV_EBADHEADER.
I am able to open (and play), blowfish encrypted files using the
ov_open_callback (and openssl BIO functions), so I thought maybe I had
struck some silly problem with the default FILE * handlers.
So I whipped up a basic callback handlers for FILE * that return -1 on the
seek function, but a call...
2002 Dec 09
2
ov_open/ov_test weirdness
...case OV_EREAD: tmp = "A read from media returned an error."; break;
                        case OV_ENOTVORBIS: tmp = "Bitstream is not Vorbis data."; break;
                        case OV_EVERSION: tmp = "Vorbis version mismatch."; break;
                        case OV_EBADHEADER: tmp = "Invalid Vorbis bitstream header."; break;
                        case OV_EFAULT: tmp = "Internal logic fault; indicates a bug or heap/stack 
corruption."; break;
                        default: tmp = "Unknown error"; break;
                }
                f...
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...pping =%d maps=%d\n",i, ci->mode_param[i]->mapping,ci->maps);
    if(ci->mode_param[i]->mapping>=ci->maps)goto err_out;
  }
  if(oggpack_read(opb,1)!=1)goto err_out; /* top level EOP check */
  return(0);
 err_out:
  vorbis_info_clear(vi);
  return(ci->maps);
  return(OV_EBADHEADER);
----------------------------------------------------------------
The fprintf line is mine and the output for packet no 3 is
        i = 0 mapping =0 maps=2
        i = 1 mapping =96 maps=2
which makes the code return OV_EBADHEADER
Is this to be expected ?
Later when I have this working, the...
2001 Oct 31
0
vorbisfile weirdness
...to write a vorbis plugin for my MP3/Music/Media player
(http://elmp-tng.sourceforge.net). I'm using vorbisfile, and
ov_open_callbacks() (to interface with my VFS layer). The problem is the
same using plain ov_open() though...
Some files play perfectly, while others (most) fail. ov_open returns
OV_EBADHEADER. The really strange thing is that both ogg123, and the
simple test program found in the vorbisfile docs
(vorbisfile_example.c) play the files perfectly. I really have no idea
what the problem is...  
The code is available at the url below, if someone would like to take a
look...   any ideas at all...
2005 Aug 05
1
debugging question.
...if(vi->channels<1)goto err_out;
214   if(ci->blocksizes[0]<8)goto err_out;
215   if(ci->blocksizes[1]<ci->blocksizes[0])goto err_out;
216
217   if(oggpack_read(opb,1)!=1)goto err_out; /* EOP check */
218
219   return(0);
220  err_out:
221   vorbis_info_clear(vi);
222   return(OV_EBADHEADER);
223 }
after single stepping till line 208, i am able to print vi->channels, 
version, bitrates etc.
However i am NOT able to print the value of ci->blocksizes[0], [1].
I tried all combinations as listed below
gdb) print ci->blocksizes[1]
No symbol "ci" in current context.
(gd...
2004 Feb 11
1
Problem using 'ov_open()'...
...lse;
  Result = ov_open(pFile, pOVFile, NULL, 0);
  switch(Result)
    {
    case 0:
      break;
    case OV_EREAD:
      fclose(pFile);
      return false;
    case OV_ENOTVORBIS:
      fclose(pFile);
      return false;
    case OV_EVERSION:
      fclose(pFile);
      return false;
    case OV_EBADHEADER:
      fclose(pFile);
      return false;
    case OV_EFAULT:
      fclose(pFile);
      return false;
    }
  return true;
  }
pSOUNDDATA OGGDATA::DecodeOGGLow()
  {
  int StreamID;
  unsigned int Size, Read, Location;
  pSOUNDDATA pData;
  if((pFile == NULL) || (pOVFile == NULL))
    return N...
2003 Oct 18
2
Joining a stream part way through?
...ogg file from the beginning by maybe a
few megabytes in. Then when I try to ov_open_callbacks this it returns a
error since the data is invalid.... I found there are tags in the stream
"OggS" to indicate the different pages, however if I start the stream on one
of these tags it returns a OV_EBADHEADER.
Now my question is, how can I allow a client to join the stream at any point
and continue play back from the next available place?
I haven't looked how Icecast does it, but if it works by sending the first
header in the file then that will mess up with p2p plans....
I don't really want t...