Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
86768975
Commit
86768975
authored
Jun 06, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/packetizer/mpegvideo.c: Fixed a 3:2 pulldown bug (not tested).
parent
b4011103
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/packetizer/mpegvideo.c
modules/packetizer/mpegvideo.c
+13
-1
No files found.
modules/packetizer/mpegvideo.c
View file @
86768975
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* mpegvideo.c
* mpegvideo.c
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* Copyright (C) 2001, 2002 VideoLAN
* $Id: mpegvideo.c,v 1.1
3 2003/04/16 00:12:36 fenrir
Exp $
* $Id: mpegvideo.c,v 1.1
4 2003/06/06 13:34:21 gbazin
Exp $
*
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
* Eric Petit <titer@videolan.org>
...
@@ -228,6 +228,7 @@ static void PacketizeThread( packetizer_t *p_pack )
...
@@ -228,6 +228,7 @@ static void PacketizeThread( packetizer_t *p_pack )
int
i_picture_structure
=
0x03
;
/* frame picture */
int
i_picture_structure
=
0x03
;
/* frame picture */
int
i_top_field_first
=
0
;
int
i_top_field_first
=
0
;
int
i_repeat_first_field
=
0
;
int
i_repeat_first_field
=
0
;
int
i_progressive_frame
=
0
;
if
(
!
p_pack
->
p_sout_input
)
if
(
!
p_pack
->
p_sout_input
)
{
{
...
@@ -403,6 +404,12 @@ static void PacketizeThread( packetizer_t *p_pack )
...
@@ -403,6 +404,12 @@ static void PacketizeThread( packetizer_t *p_pack )
ShowBits
(
&
p_pack
->
bit_stream
,
25
)
&
0x01
;
ShowBits
(
&
p_pack
->
bit_stream
,
25
)
&
0x01
;
i_repeat_first_field
=
i_repeat_first_field
=
ShowBits
(
&
p_pack
->
bit_stream
,
31
)
&
0x01
;
ShowBits
(
&
p_pack
->
bit_stream
,
31
)
&
0x01
;
GetChunk
(
&
p_pack
->
bit_stream
,
p_sout_buffer
->
p_buffer
+
i_pos
,
4
);
i_pos
+=
4
;
i_progressive_frame
=
ShowBits
(
&
p_pack
->
bit_stream
,
1
)
&
0x01
;
}
}
CopyUntilNextStartCode
(
p_pack
,
p_sout_buffer
,
&
i_pos
);
CopyUntilNextStartCode
(
p_pack
,
p_sout_buffer
,
&
i_pos
);
}
}
...
@@ -487,6 +494,11 @@ static void PacketizeThread( packetizer_t *p_pack )
...
@@ -487,6 +494,11 @@ static void PacketizeThread( packetizer_t *p_pack )
if
(
i_picture_structure
==
0x03
)
if
(
i_picture_structure
==
0x03
)
{
{
p_pack
->
i_last_dts
+=
i_duration
;
p_pack
->
i_last_dts
+=
i_duration
;
if
(
i_progressive_frame
&&
i_repeat_first_field
)
{
p_pack
->
i_last_dts
+=
i_duration
/
2
;
}
}
}
else
if
(
i_picture_structure
==
p_pack
->
i_last_picture_structure
)
else
if
(
i_picture_structure
==
p_pack
->
i_last_picture_structure
)
{
{
...
...
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