OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d18060
)
avformat/mov: use rfps_add_frame() only for video
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 7 Dec 2013 02:23:49 +0000
(
03:23
+0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 7 Dec 2013 02:23:49 +0000
(
03:23
+0100)
it makes no sense for other streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
7c0c897
..
0157a7d
100644
(file)
--- 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);
}