summaryrefslogtreecommitdiffstats
path: root/libhb/bd.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-09-19 15:35:46 +0000
committerjstebbins <[email protected]>2011-09-19 15:35:46 +0000
commitd36f10c33b9f9f85134f70fc785e2523177b2444 (patch)
treee6906a5b917569d17da651ab6b897865609994d3 /libhb/bd.c
parentd145ee9d9ed7be65b83124afbf0cc71b60adddc6 (diff)
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
Diffstat (limited to 'libhb/bd.c')
-rw-r--r--libhb/bd.c2
1 files changed, 2 insertions, 0 deletions
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;
}