Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
Vorbis
Vorbis
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Xiph.Org
  • VorbisVorbis
  • Issues
  • #1374

Closed
Open
Created Jun 07, 2008 by bornstub@bornstub

Length of first buffer less than 4400 call ov_open_callbacks will get OV_EBADHEADER

I write a wrapper for vorbisfile to decode ogg vorbis data. Because it is designed to decode data that is received from internet. So I write a reading callback for ov_open_callbacks. At first everything works. And then, I found a tricky problem :

IDecoder *pDecoder = new OggDecoder(); fstream inputFile("../test.ogg", ios_base::binary | ios_base::in);

const int SIZE = 4399; unsigned char *pBuffer = new unsigned char[SIZE]; size_t size = inputFile.readsome((char *)pBuffer, SIZE);

If I read a chunk of data that its length is less than 4400. And pass it to the wrapper. I will get a OV_EBADHEADER result returned by ov_open_callbacks.

Why? Is that a bug? Or just a feature ? Should I pass data to vorbisfile at last 4400 bytes?

Thanks.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None