Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
f7e0344e
Commit
f7e0344e
authored
Sep 26, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/libmpeg2.c, ffmpeg/video.c, theora.c: decoder sets fmt_out.video.i_frame_rate.
parent
b6e85ad8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+6
-0
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+12
-0
modules/codec/theora.c
modules/codec/theora.c
+6
-0
No files found.
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