diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-05-26 01:23:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-05-26 01:23:46 +0200 |
commit | 96470ca22b3b46677de0e2df64e87c5ec80d752b (patch) | |
tree | 3708a325647dd1452ff42f4b496dc02e25d4021b /libavformat/mov.c | |
parent | d2eacbb754bab656640bbe98c6ee90ee8887aff1 (diff) | |
download | ffmpeg-streaming-96470ca22b3b46677de0e2df64e87c5ec80d752b.zip ffmpeg-streaming-96470ca22b3b46677de0e2df64e87c5ec80d752b.tar.gz |
avformat/mov: allow seeking back to the begin even if nothing is marked as keyframe
Fixes Ticket 3663
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 7203d58..befbfa6 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -2157,7 +2157,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) if (sc->keyframe_absent && !sc->stps_count && !rap_group_present - && st->codec->codec_type == AVMEDIA_TYPE_AUDIO) + && (st->codec->codec_type == AVMEDIA_TYPE_AUDIO || (i==0 && j==0))) keyframe = 1; if (keyframe) distance = 0; |