Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
b617ab5f
Commit
b617ab5f
authored
Jun 08, 2012
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: fix mpeg-1 encoding
parent
88ade576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+7
-2
No files found.
modules/codec/avcodec/encoder.c
View file @
b617ab5f
...
...
@@ -220,6 +220,12 @@ int OpenEncoder( vlc_object_t *p_this )
i_codec_id
=
CODEC_ID_MP2
;
psz_namecodec
=
"MPEG I/II Layer 2"
;
}
else
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP1V
)
{
i_cat
=
VIDEO_ES
;
i_codec_id
=
CODEC_ID_MPEG1VIDEO
;
psz_namecodec
=
"MPEG-1 video"
;
}
else
if
(
!
GetFfmpegCodec
(
p_enc
->
fmt_out
.
i_codec
,
&
i_cat
,
&
i_codec_id
,
&
psz_namecodec
)
)
{
...
...
@@ -466,8 +472,7 @@ int OpenEncoder( vlc_object_t *p_this )
p_context
->
b_frame_strategy
=
0
;
if
(
!
p_context
->
max_b_frames
&&
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MPGV
||
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP2V
||
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP1V
)
)
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP2V
)
)
p_context
->
flags
|=
CODEC_FLAG_LOW_DELAY
;
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_CODEC_MP2V
)
...
...
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