diff options
author | jstebbins <[email protected]> | 2011-11-13 19:20:43 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-11-13 19:20:43 +0000 |
commit | 30562e8ba9d98475c8bb0b570f41da1db8c09edb (patch) | |
tree | 224300c1b194110d3ee0159fd71653e14f1c167e /contrib | |
parent | b9001e7ebc4ad8e04e12423169258d67f6e251e8 (diff) |
Fix seeking in wmv files that have no index
Libav's fallback binary search seek fails because a PTS is never
generated for video stream types that have B frames.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4348 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ffmpeg/A05-asf-seek.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/ffmpeg/A05-asf-seek.patch b/contrib/ffmpeg/A05-asf-seek.patch new file mode 100644 index 000000000..c19ad496b --- /dev/null +++ b/contrib/ffmpeg/A05-asf-seek.patch @@ -0,0 +1,16 @@ +diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c +index 0245340..85b2649 100644 +--- a/libavformat/asfdec.c ++++ b/libavformat/asfdec.c +@@ -1172,7 +1172,10 @@ static int64_t asf_read_pts(AVFormatContext *s, int stream_index, int64_t *ppos, + return AV_NOPTS_VALUE; + } + +- pts= pkt->pts; ++ if (pkt->pts == AV_NOPTS_VALUE) ++ pts = pkt->dts; ++ else ++ pts = pkt->pts; + + av_free_packet(pkt); + if(pkt->flags&AV_PKT_FLAG_KEY){ |