diff options
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 ) ) |