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
fb51deba
Commit
fb51deba
authored
Aug 08, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codec: cc: flag blocks when packetized and ordered
avoids reordering and display delay
parent
5d75b486
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
modules/codec/cc.c
modules/codec/cc.c
+6
-0
modules/codec/cc.h
modules/codec/cc.h
+2
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+2
-0
No files found.
modules/codec/cc.c
View file @
fb51deba
...
@@ -311,6 +311,12 @@ static block_t *Pop( decoder_t *p_dec )
...
@@ -311,6 +311,12 @@ static block_t *Pop( decoder_t *p_dec )
* XXX it won't work with H264 which use non out of order B picture or MMCO
* XXX it won't work with H264 which use non out of order B picture or MMCO
*/
*/
if
(
p_sys
->
i_block
&&
(
p_sys
->
pp_block
[
0
]
->
i_flags
&
BLOCK_FLAG_PRIVATE_MASK
)
)
{
p_sys
->
i_block
--
;
return
p_sys
->
pp_block
[
0
];
}
/* Wait for a P and output all *previous* picture by pts order (for
/* Wait for a P and output all *previous* picture by pts order (for
* hierarchical B frames) */
* hierarchical B frames) */
if
(
p_sys
->
i_block
<=
1
||
if
(
p_sys
->
i_block
<=
1
||
...
...
modules/codec/cc.h
View file @
fb51deba
...
@@ -26,6 +26,8 @@
...
@@ -26,6 +26,8 @@
#include <vlc_bits.h>
#include <vlc_bits.h>
#define BLOCK_FLAG_ORDERED_CAPTIONS (0x01 << BLOCK_FLAG_PRIVATE_SHIFT)
/* CC have a maximum rate of 9600 bit/s (per field?) */
/* CC have a maximum rate of 9600 bit/s (per field?) */
#define CC_MAX_DATA_SIZE (2 * 3*600)
#define CC_MAX_DATA_SIZE (2 * 3*600)
enum
enum
...
...
modules/demux/mp4/mp4.c
View file @
fb51deba
...
@@ -38,6 +38,7 @@
...
@@ -38,6 +38,7 @@
#include <vlc_aout.h>
#include <vlc_aout.h>
#include <assert.h>
#include <assert.h>
#include <limits.h>
#include <limits.h>
#include "../codec/cc.h"
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
...
@@ -482,6 +483,7 @@ static block_t * MP4_EIA608_Convert( block_t * p_block )
...
@@ -482,6 +483,7 @@ static block_t * MP4_EIA608_Convert( block_t * p_block )
block_Release
(
p_block
);
block_Release
(
p_block
);
p_newblock
->
i_buffer
=
i_copied
;
p_newblock
->
i_buffer
=
i_copied
;
p_newblock
->
i_flags
=
BLOCK_FLAG_ORDERED_CAPTIONS
;
return
p_newblock
;
return
p_newblock
;
}
}
...
...
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