diff options
author | dynaflash <[email protected]> | 2007-12-31 17:11:15 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2007-12-31 17:11:15 +0000 |
commit | a2a317c82d8b98e2fbce23bd4bf1b0ce9bb65c14 (patch) | |
tree | 9d50f13f633497305c9cc5e6218c0e92f7444196 /libhb/sync.c | |
parent | 68cb0b2457e5a474040b52fab2f3ec873d1b2399 (diff) |
Program Stream Enhancements - Van: Libhb
- Thanks Van !
- Identifies program streams by type instead of file extension
- Improves proper duration reporting of program streams
- fixes audio reconvergence code in libhb/sync.c trying to free a null buffer causing a crash
- Assorted other enhancements to encoding program streams.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1155 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/sync.c')
-rw-r--r-- | libhb/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/sync.c b/libhb/sync.c index 3521ad036..9d6679d24 100644 --- a/libhb/sync.c +++ b/libhb/sync.c @@ -827,8 +827,8 @@ static void SyncAudio( hb_work_object_t * w, int i ) /* * Trash the top audio packet to avoid dead lock as we reconverge. */ - buf = hb_fifo_get( audio->fifo_raw ); - hb_buffer_close( &buf ); + if ( (buf = hb_fifo_get( audio->fifo_raw ) ) != NULL) + hb_buffer_close( &buf ); } if( NeedSilence( w, audio ) ) |