From d36f10c33b9f9f85134f70fc785e2523177b2444 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 19 Sep 2011 15:35:46 +0000 Subject: Fix corrupt first frame in BD point-to-point Seek point may be a recovery point which will not be a complete clean frame. So consume frames till we reach the recovery frame count. Patches Libav so it can tell us when the recovery point has been reached. Also improves detection of recovery points in TS files. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4231 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/bd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libhb/bd.c') diff --git a/libhb/bd.c b/libhb/bd.c index 3adf765a1..93ca20d02 100644 --- a/libhb/bd.c +++ b/libhb/bd.c @@ -529,6 +529,7 @@ int hb_bd_seek_pts( hb_bd_t * d, uint64_t pts ) { bd_seek_time(d->bd, pts); d->next_chap = bd_get_current_chapter( d->bd ) + 1; + hb_ts_stream_reset(d->stream); return 1; } @@ -537,6 +538,7 @@ int hb_bd_seek_chapter( hb_bd_t * d, int c ) int64_t pos; d->next_chap = c; pos = bd_seek_chapter( d->bd, c - 1 ); + hb_ts_stream_reset(d->stream); return 1; } -- cgit v1.2.3