OSDN Git Service

fix audio detection problem during scan of ffmpeg audio sources
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 2 Apr 2010 23:58:24 +0000 (23:58 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Fri, 2 Apr 2010 23:58:24 +0000 (23:58 +0000)
commita71ca004fca2bbd8a8d7bcb65c4928a0b1f65084
tree0ab6e53e6f7a6bf3b55eddb8143827dcd0765713
parent578dfc145ce4398a278550bc0fc8cdc1e76fa2f4
fix audio detection problem during scan of ffmpeg audio sources
audio frames can be larger than their container packet sizes, but during
scan, we only feed one container packet to the decoder, then reset
the decoder and try the next packet.  so the audio is never detected.

as buffers are tested, they are added to a cache.  the entire cache is
passed to the decoder to scan for info.  the cache is limited to 4KB.

git-svn-id: svn://localhost/HandBrake/trunk@3195 b64f7644-9d1e-0410-96f1-a4d463321fa5
libhb/common.h
libhb/decavcodec.c
libhb/fifo.c
libhb/internal.h
libhb/scan.c