avformat/asfdec_f: Correct skip to key code
authorJohn Adlum <john.adlum@nospam>
Wed, 1 Jul 2015 14:08:05 +0000 (16:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Jul 2015 16:47:54 +0000 (18:47 +0200)
Fixes Ticket3978

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec_f.c

index db8791e..554989e 100644 (file)
@@ -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);