diff options
author | jstebbins <[email protected]> | 2011-03-31 21:22:10 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-03-31 21:22:10 +0000 |
commit | 889409ab149f8d7b20be0dfb720359c80fb7471e (patch) | |
tree | 760788ba9dd429e05af1562313c4f4d503723a36 /libhb/scan.c | |
parent | 3c4b07d3cfb12d0d3318b37f790c0d7f872a68ab (diff) |
get rid of an superfluous test and decriment
just an old thinko that needed correcting.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3894 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 89fd90b97..bec45d373 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -605,17 +605,14 @@ static int DecodePreviews( hb_scan_t * data, hb_title_t * title ) if( buf_es->id == title->video_id && vid_buf == NULL ) { vid_decoder->work( vid_decoder, &buf_es, &vid_buf ); - if ( vid_buf && vidskip && --vidskip > 0 ) + // we're dropping frames to get the video decoder in sync + // when the video stream doesn't contain IDR frames + while (vid_buf && --vidskip >= 0) { - // we're dropping frames to get the video decoder in sync - // when the video stream doesn't contain IDR frames - while (vid_buf && --vidskip >= 0) - { - hb_buffer_t * next = vid_buf->next; - vid_buf->next = NULL; - hb_buffer_close( &vid_buf ); - vid_buf = next; - } + hb_buffer_t * next = vid_buf->next; + vid_buf->next = NULL; + hb_buffer_close( &vid_buf ); + vid_buf = next; } } else if( ! AllAudioOK( title ) ) |