Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
3ab295cd
Commit
3ab295cd
authored
Nov 08, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [17542] : mpeg2 large frame encoding
* backport [17543] : Fix mpeg2 PTS/DTS for field pictures
parent
17db527b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/codec/ffmpeg/encoder.c
modules/codec/ffmpeg/encoder.c
+5
-0
No files found.
modules/codec/ffmpeg/encoder.c
View file @
3ab295cd
...
...
@@ -383,6 +383,9 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_context
->
width
=
p_enc
->
fmt_in
.
video
.
i_width
;
p_context
->
height
=
p_enc
->
fmt_in
.
video
.
i_height
;
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_FOURCC
(
'm'
,
'p'
,
'2'
,
'v'
)
&&
(
p_context
->
width
>
720
||
p_context
->
height
>
576
)
)
p_context
->
level
=
4
;
/* High level */
#if LIBAVCODEC_BUILD >= 4754
p_context
->
time_base
.
num
=
p_enc
->
fmt_in
.
video
.
i_frame_rate_base
;
...
...
@@ -414,6 +417,8 @@ int E_(OpenEncoder)( vlc_object_t *p_this )
p_context
->
max_b_frames
=
__MAX
(
__MIN
(
p_sys
->
i_b_frames
,
FF_MAX_B_FRAMES
),
0
);
p_context
->
b_frame_strategy
=
0
;
if
(
!
p_context
->
max_b_frames
)
p_context
->
flags
|=
CODEC_FLAG_LOW_DELAY
;
#if LIBAVCODEC_BUILD >= 4687
av_reduce
(
&
i_aspect_num
,
&
i_aspect_den
,
...
...
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