diff options
author | John Adlum <john.adlum@nospam> | 2015-07-01 16:08:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-07-01 18:47:54 +0200 |
commit | 28206b75e81c7713476bf3736ccb6f620d96540d (patch) | |
tree | 34d6acdd53e3f91fabaeb9ce2f9fe6b1660cf9d6 /libavformat/asfdec_f.c | |
parent | 089a818bd3cd01d834301339ee14d95624140303 (diff) |
avformat/asfdec_f: Correct skip to key code
Fixes Ticket3978
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfdec_f.c')
-rw-r--r-- | libavformat/asfdec_f.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index db8791e980..554989e068 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); |