Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
454
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
071841ed
Commit
071841ed
authored
21 years ago
by
gbazin
Browse files
Options
Downloads
Patches
Plain Diff
* modules/codec/ffmpeg/encoder.c: bframes are supported for mp1v and mp2v as well as mpgv.
parent
37c3eadc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/codec/ffmpeg/encoder.c
+4
-2
4 additions, 2 deletions
modules/codec/ffmpeg/encoder.c
with
4 additions
and
2 deletions
modules/codec/ffmpeg/encoder.c
+
4
−
2
View file @
071841ed
...
...
@@ -2,7 +2,7 @@
* encoder.c: video and audio encoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: encoder.c,v 1.
8
2003/11/2
2 2
3:
3
9:1
4 fenrir
Exp $
* $Id: encoder.c,v 1.
9
2003/11/2
6 1
3:
5
9:1
6 gbazin
Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -291,7 +291,9 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
}
/* Set the pts of the frame being encoded (segfaults with mpeg4!)*/
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
)
)
if
(
p_enc
->
fmt_out
.
i_codec
==
VLC_FOURCC
(
'm'
,
'p'
,
'g'
,
'v'
)
||
p_enc
->
fmt_out
.
i_codec
==
VLC_FOURCC
(
'm'
,
'p'
,
'1'
,
'v'
)
||
p_enc
->
fmt_out
.
i_codec
==
VLC_FOURCC
(
'm'
,
'p'
,
'2'
,
'v'
)
)
frame
.
pts
=
p_pict
->
date
;
else
frame
.
pts
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment