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
1e0a7a8c
Commit
1e0a7a8c
authored
Oct 24, 2012
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: settings pts doesn't segfault with mp4v
parent
aba8eb02
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
33 deletions
+26
-33
modules/codec/avcodec/encoder.c
modules/codec/avcodec/encoder.c
+26
-33
No files found.
modules/codec/avcodec/encoder.c
View file @
1e0a7a8c
...
...
@@ -871,9 +871,7 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
frame
->
interlaced_frame
=
!
p_pict
->
b_progressive
;
frame
->
top_field_first
=
!!
p_pict
->
b_top_field_first
;
/* Set the pts of the frame being encoded (segfaults with mpeg4!)*/
if
(
p_enc
->
fmt_out
.
i_codec
!=
VLC_CODEC_MP4V
)
{
/* Set the pts of the frame being encoded */
frame
->
pts
=
p_pict
->
date
?
p_pict
->
date
:
(
int64_t
)
AV_NOPTS_VALUE
;
if
(
p_sys
->
b_hurry_up
&&
frame
->
pts
!=
(
int64_t
)
AV_NOPTS_VALUE
)
...
...
@@ -912,11 +910,6 @@ static block_t *EncodeVideo( encoder_t *p_enc, picture_t *p_pict )
/* msg_Dbg( p_enc, "hurry up mode 1 %lld", current_date + HURRY_UP_GUARD1 - frame.pts ); */
}
}
}
else
{
frame
->
pts
=
(
int64_t
)
AV_NOPTS_VALUE
;
}
if
(
frame
->
pts
!=
(
int64_t
)
AV_NOPTS_VALUE
&&
frame
->
pts
!=
0
)
{
...
...
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