[FFmpeg-cvslog] avformat/mov: use rfps_add_frame() only for video

Michael Niedermayer git at videolan.org
Sat Dec 7 04:28:42 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec  7 03:23:49 2013 +0100| [ba189b1db49c27e2c9e117362c516cbf106e585e] | committer: Michael Niedermayer

avformat/mov: use rfps_add_frame() only for video

it makes no sense for other streams

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ba189b1db49c27e2c9e117362c516cbf106e585e
---

 libavformat/mov.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 7c0c897..0157a7d 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);
                 }
 



More information about the ffmpeg-cvslog mailing list