Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
b30fa861
Commit
b30fa861
authored
Mar 06, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* transcode.c: fix for when 1st frame of non-low-delay streams only has a dts.
parent
87917c6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+2
-1
No files found.
modules/stream_out/transcode.c
View file @
b30fa861
...
@@ -171,6 +171,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -171,6 +171,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_threads
=
0
;
p_sys
->
i_threads
=
0
;
p_sys
->
b_trellis
=
0
;
p_sys
->
b_trellis
=
0
;
p_sys
->
b_input_has_b_frames
=
VLC_FALSE
;
p_sys
->
b_input_has_b_frames
=
VLC_FALSE
;
p_sys
->
i_output_pts
=
0
;
if
(
(
codec
=
sout_cfg_find_value
(
p_stream
->
p_cfg
,
"acodec"
)
)
)
if
(
(
codec
=
sout_cfg_find_value
(
p_stream
->
p_cfg
,
"acodec"
)
)
)
{
{
...
@@ -1780,7 +1781,7 @@ static int transcode_video_ffmpeg_getframebuf(struct AVCodecContext *p_context,
...
@@ -1780,7 +1781,7 @@ static int transcode_video_ffmpeg_getframebuf(struct AVCodecContext *p_context,
/* Some demuxers/packetizers only set the dts so let's try to find a
/* Some demuxers/packetizers only set the dts so let's try to find a
* useful timestamp from this */
* useful timestamp from this */
if
(
!
p_context
->
has_b_frames
||
!
p_sys
->
b_input_has_b_frames
||
if
(
!
p_context
->
has_b_frames
||
!
p_sys
->
b_input_has_b_frames
||
!
p_frame
->
reference
)
!
p_frame
->
reference
||
!
p_sys
->
i_output_pts
)
{
{
p_frame
->
pts
=
p_sys
->
i_input_dts
;
p_frame
->
pts
=
p_sys
->
i_input_dts
;
}
}
...
...
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