aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-07 03:23:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-07 03:23:49 +0100
commitba189b1db49c27e2c9e117362c516cbf106e585e (patch)
treefc20b7402ff87a9852deaf2a5fd8520e4d6bff4f
parent4d18060e56aac9d7248854ba75d5fc19f5cd3db8 (diff)
downloadffmpeg-ba189b1db49c27e2c9e117362c516cbf106e585e.tar.gz
avformat/mov: use rfps_add_frame() only for video
it makes no sense for other streams Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 7c0c89767b..0157a7dc8a 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2159,7 +2159,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st)
av_dlog(mov->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
"size %d, distance %d, keyframe %d\n", st->index, current_sample,
current_offset, current_dts, sample_size, distance, keyframe);
- if (st->nb_index_entries < 100)
+ if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && st->nb_index_entries < 100)
ff_rfps_add_frame(mov->fc, st, current_dts);
}