Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
729b3714
Commit
729b3714
authored
Jan 05, 2013
by
Anton Khirnov
Browse files
mvi: set framerate
This container does not store timestamps and thus supports CFR only.
parent
aec50f79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
libavformat/mvi.c
libavformat/mvi.c
+1
-0
No files found.
libavformat/mvi.c
View file @
729b3714
...
@@ -87,6 +87,7 @@ static int read_header(AVFormatContext *s)
...
@@ -87,6 +87,7 @@ static int read_header(AVFormatContext *s)
ast
->
codec
->
bit_rate
=
ast
->
codec
->
sample_rate
*
8
;
ast
->
codec
->
bit_rate
=
ast
->
codec
->
sample_rate
*
8
;
avpriv_set_pts_info
(
vst
,
64
,
msecs_per_frame
,
1000000
);
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_type
=
AVMEDIA_TYPE_VIDEO
;
vst
->
codec
->
codec_id
=
AV_CODEC_ID_MOTIONPIXELS
;
vst
->
codec
->
codec_id
=
AV_CODEC_ID_MOTIONPIXELS
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment