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
b96d78bb
Commit
b96d78bb
authored
Dec 22, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/libmpeg2.c: compiles with the latest libmpeg2 cvs.
parent
dc93d552
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+16
-1
No files found.
modules/codec/libmpeg2.c
View file @
b96d78bb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: libmpeg2.c,v 1.
39 2003/12/22 14:32:55 sam
Exp $
* $Id: libmpeg2.c,v 1.
40 2003/12/22 16:40:04 gbazin
Exp $
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Christophe Massiot <massiot@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
...
@@ -210,7 +210,13 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -210,7 +210,13 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
p_block
->
i_pts
)
if
(
p_block
->
i_pts
)
{
{
#ifdef PIC_FLAG_PTS
mpeg2_pts
(
p_sys
->
p_mpeg2dec
,
(
uint32_t
)
p_block
->
i_pts
);
mpeg2_pts
(
p_sys
->
p_mpeg2dec
,
(
uint32_t
)
p_block
->
i_pts
);
#else
/* New interface */
mpeg2_tag_picture
(
p_sys
->
p_mpeg2dec
,
(
uint32_t
)
p_block
->
i_pts
,
0
/*dts*/
);
#endif
p_sys
->
i_previous_pts
=
p_sys
->
i_current_pts
;
p_sys
->
i_previous_pts
=
p_sys
->
i_current_pts
;
p_sys
->
i_current_pts
=
p_block
->
i_pts
;
p_sys
->
i_current_pts
=
p_block
->
i_pts
;
}
}
...
@@ -337,11 +343,20 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -337,11 +343,20 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
}
p_sys
->
b_after_sequence_header
=
0
;
p_sys
->
b_after_sequence_header
=
0
;
#ifdef PIC_FLAG_PTS
i_pts
=
p_sys
->
p_info
->
current_picture
->
flags
&
PIC_FLAG_PTS
?
i_pts
=
p_sys
->
p_info
->
current_picture
->
flags
&
PIC_FLAG_PTS
?
(
(
p_sys
->
p_info
->
current_picture
->
pts
==
(
(
p_sys
->
p_info
->
current_picture
->
pts
==
(
uint32_t
)
p_sys
->
i_current_pts
)
?
(
uint32_t
)
p_sys
->
i_current_pts
)
?
p_sys
->
i_current_pts
:
p_sys
->
i_previous_pts
)
:
0
;
p_sys
->
i_current_pts
:
p_sys
->
i_previous_pts
)
:
0
;
#else
/* New interface */
i_pts
=
p_sys
->
p_info
->
current_picture
->
flags
&
PIC_FLAG_TAGS
?
(
(
p_sys
->
p_info
->
current_picture
->
tag
==
(
uint32_t
)
p_sys
->
i_current_pts
)
?
p_sys
->
i_current_pts
:
p_sys
->
i_previous_pts
)
:
0
;
#endif
/* Hack to handle demuxers which only have DTS timestamps */
/* Hack to handle demuxers which only have DTS timestamps */
if
(
!
i_pts
&&
!
p_block
->
i_pts
&&
p_block
->
i_dts
>
0
)
if
(
!
i_pts
&&
!
p_block
->
i_pts
&&
p_block
->
i_dts
>
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