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
d24ab97f
Commit
d24ab97f
authored
Aug 12, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/video.[ch]: another temporary workaround.
parent
61529b8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
modules/codec/ffmpeg/video.c
modules/codec/ffmpeg/video.c
+7
-2
modules/codec/ffmpeg/video.h
modules/codec/ffmpeg/video.h
+4
-1
No files found.
modules/codec/ffmpeg/video.c
View file @
d24ab97f
...
...
@@ -2,7 +2,7 @@
* video.c: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.c,v 1.3
8 2003/08/09 19:49:13
gbazin Exp $
* $Id: video.c,v 1.3
9 2003/08/12 17:01:35
gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
...
...
@@ -380,6 +380,8 @@ int E_( InitThread_Video )( vdec_thread_t *p_vdec )
p_vdec
->
input_pts_previous
=
0
;
p_vdec
->
input_pts
=
0
;
p_vdec
->
b_has_b_frames
=
VLC_FALSE
;
return
(
VLC_SUCCESS
);
}
...
...
@@ -588,11 +590,14 @@ usenextdata:
/* Set the PTS
* There is an ugly hack here because some demuxers pass us a dts instead
* of a pts so this screw up things for streams with B frames. */
if
(
p_vdec
->
p_ff_pic
->
pict_type
==
FF_B_TYPE
)
p_vdec
->
b_has_b_frames
=
VLC_TRUE
;
if
(
p_vdec
->
p_ff_pic
->
pts
&&
(
!
p_vdec
->
p_context
->
has_b_frames
||
(
!
p_vdec
->
p_context
->
has_b_frames
||
!
p_vdec
->
b_has_b_frames
||
p_vdec
->
p_ff_pic
->
pict_type
==
FF_B_TYPE
)
)
{
p_vdec
->
pts
=
p_vdec
->
p_ff_pic
->
pts
;
msg_Err
(
p_vdec
->
p_fifo
,
"new pts: "
I64Fd
,
p_vdec
->
pts
);
}
if
(
p_vdec
->
pts
<=
0
)
...
...
modules/codec/ffmpeg/video.h
View file @
d24ab97f
...
...
@@ -2,7 +2,7 @@
* video.h: video decoder using ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: video.h,v 1.1
0 2003/08/08 17:08:32
gbazin Exp $
* $Id: video.h,v 1.1
1 2003/08/12 17:01:35
gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -40,6 +40,9 @@ typedef struct vdec_thread_s
int
b_hurry_up
;
int
i_frame_error
;
int
i_frame_skip
;
vlc_bool_t
b_has_b_frames
;
int
i_frame_late
;
/* how many decoded frames are late */
mtime_t
i_frame_late_start
;
...
...
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