Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
b1b72b63
Commit
b1b72b63
authored
Nov 08, 2006
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c: MPEG compliance fixes for large pictures
and low delay streams.
parent
bb5f959c
Changes
1
Hide 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 @
b1b72b63
...
...
@@ -389,6 +389,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
;
...
...
@@ -420,6 +423,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