diff options
author | jstebbins <[email protected]> | 2010-04-02 23:58:24 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-04-02 23:58:24 +0000 |
commit | 7397025b5095f6154f69b5529a79791d5588d935 (patch) | |
tree | 0ab6e53e6f7a6bf3b55eddb8143827dcd0765713 /libhb/internal.h | |
parent | fc299fb336fa32722f04e529e987c27d67dddb26 (diff) |
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://svn.handbrake.fr/HandBrake/trunk@3195 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/internal.h')
-rw-r--r-- | libhb/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhb/internal.h b/libhb/internal.h index 59753022e..7672c7311 100644 --- a/libhb/internal.h +++ b/libhb/internal.h @@ -87,6 +87,7 @@ void hb_buffer_copy_settings( hb_buffer_t * dst, hb_fifo_t * hb_fifo_init( int capacity, int thresh ); int hb_fifo_size( hb_fifo_t * ); +int hb_fifo_size_bytes( hb_fifo_t * ); int hb_fifo_is_full( hb_fifo_t * ); float hb_fifo_percent_full( hb_fifo_t * f ); hb_buffer_t * hb_fifo_get( hb_fifo_t * ); |