projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec50f7
)
mvi: set framerate
author
Anton Khirnov
<anton@khirnov.net>
Sat, 5 Jan 2013 10:45:51 +0000
(11:45 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Tue, 29 Jan 2013 06:31:55 +0000
(07:31 +0100)
This container does not store timestamps and thus supports CFR only.
libavformat/mvi.c
patch
|
blob
|
history
diff --git
a/libavformat/mvi.c
b/libavformat/mvi.c
index
10ec8bb
..
7fb163b
100644
(file)
--- a/
libavformat/mvi.c
+++ b/
libavformat/mvi.c
@@
-87,6
+87,7
@@
static int read_header(AVFormatContext *s)
ast->codec->bit_rate = ast->codec->sample_rate * 8;
avpriv_set_pts_info(vst, 64, msecs_per_frame, 1000000);
+ vst->avg_frame_rate = av_inv_q(vst->time_base);
vst->codec->codec_type = AVMEDIA_TYPE_VIDEO;
vst->codec->codec_id = AV_CODEC_ID_MOTIONPIXELS;