Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
f7e0344e
Commit
f7e0344e
authored
Sep 26, 2004
by
gbazin
Browse files
* modules/codec/libmpeg2.c, ffmpeg/video.c, theora.c: decoder sets fmt_out.video.i_frame_rate.
parent
b6e85ad8
Changes
3
Hide whitespace changes
Inline
Side-by-side
modules/codec/ffmpeg/video.c
View file @
f7e0344e
...
...
@@ -185,6 +185,12 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
}
}
if
(
p_context
->
frame_rate
>
0
&&
p_context
->
frame_rate_base
>
0
)
{
p_dec
->
fmt_out
.
video
.
i_frame_rate
=
p_context
->
frame_rate
;
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
=
p_context
->
frame_rate_base
;
}
p_pic
=
p_dec
->
pf_vout_buffer_new
(
p_dec
);
#ifdef LIBAVCODEC_PP
...
...
modules/codec/libmpeg2.c
View file @
f7e0344e
...
...
@@ -594,9 +594,21 @@ static picture_t *GetNewPicture( decoder_t *p_dec, uint8_t **pp_buf )
picture_t
*
p_pic
;
p_dec
->
fmt_out
.
video
.
i_width
=
p_sys
->
p_info
->
sequence
->
width
;
p_dec
->
fmt_out
.
video
.
i_visible_width
=
p_sys
->
p_info
->
sequence
->
picture_width
;
p_dec
->
fmt_out
.
video
.
i_height
=
p_sys
->
p_info
->
sequence
->
height
;
p_dec
->
fmt_out
.
video
.
i_visible_height
=
p_sys
->
p_info
->
sequence
->
picture_height
;
p_dec
->
fmt_out
.
video
.
i_aspect
=
p_sys
->
i_aspect
;
if
(
p_sys
->
p_info
->
sequence
->
frame_period
>
0
)
{
p_dec
->
fmt_out
.
video
.
i_frame_rate
=
(
uint32_t
)(
(
uint64_t
)
1001000000
*
27
/
p_sys
->
p_info
->
sequence
->
frame_period
);
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
=
1001
;
}
p_dec
->
fmt_out
.
i_codec
=
(
p_sys
->
p_info
->
sequence
->
chroma_height
<
p_sys
->
p_info
->
sequence
->
height
)
?
...
...
modules/codec/theora.c
View file @
f7e0344e
...
...
@@ -294,6 +294,12 @@ static int ProcessHeaders( decoder_t *p_dec )
p_sys
->
ti
.
frame_width
/
p_sys
->
ti
.
frame_height
;
}
if
(
p_sys
->
ti
.
fps_numerator
>
0
&&
p_sys
->
ti
.
fps_denominator
>
0
)
{
p_dec
->
fmt_out
.
video
.
i_frame_rate
=
p_sys
->
ti
.
fps_numerator
;
p_dec
->
fmt_out
.
video
.
i_frame_rate_base
=
p_sys
->
ti
.
fps_denominator
;
}
msg_Dbg
(
p_dec
,
"%dx%d %.02f fps video, frame content "
"is %dx%d with offset (%d,%d)"
,
p_sys
->
ti
.
width
,
p_sys
->
ti
.
height
,
...
...
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