[FFmpeg-cvslog] avformat/asfdec_f: Correct skip to key code

John Adlum git at videolan.org
Wed Jul 1 18:56:39 CEST 2015


ffmpeg | branch: master | John Adlum <john.adlum at nospam> | Wed Jul  1 16:08:05 2015 +0200| [28206b75e81c7713476bf3736ccb6f620d96540d] | committer: Michael Niedermayer

avformat/asfdec_f: Correct skip to key code

Fixes Ticket3978

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28206b75e81c7713476bf3736ccb6f620d96540d
---

 libavformat/asfdec_f.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index db8791e..554989e 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -1208,7 +1208,8 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
                 continue;
             }
             asf->asf_st = &asf->streams[s->streams[asf->stream_index]->id];
-            asf->asf_st->skip_to_key = 0;
+            if (!asf->packet_frag_offset)
+                asf->asf_st->skip_to_key = 0;
         }
         asf_st = asf->asf_st;
         av_assert0(asf_st);



More information about the ffmpeg-cvslog mailing list