Commit ba189b1d authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mov: use rfps_add_frame() only for video

it makes no sense for other streams
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4d18060e
...@@ -2159,7 +2159,7 @@ static void mov_build_index(MOVContext *mov, AVStream *st) ...@@ -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", " av_dlog(mov->fc, "AVIndex stream %d, sample %d, offset %"PRIx64", dts %"PRId64", "
"size %d, distance %d, keyframe %d\n", st->index, current_sample, "size %d, distance %d, keyframe %d\n", st->index, current_sample,
current_offset, current_dts, sample_size, distance, keyframe); 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); ff_rfps_add_frame(mov->fc, st, current_dts);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment