Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
f7a8bc79
Commit
f7a8bc79
authored
May 07, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify and fix the block flag test in dirac packetizer.
parent
816e1cd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
16 deletions
+13
-16
modules/packetizer/dirac.c
modules/packetizer/dirac.c
+13
-16
No files found.
modules/packetizer/dirac.c
View file @
f7a8bc79
...
@@ -1230,21 +1230,11 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
...
@@ -1230,21 +1230,11 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
block_t
*
p_block
=
NULL
;
block_t
*
p_block
=
NULL
;
int
i_flushing
=
0
;
int
i_flushing
=
0
;
while
(
pp_block
&&
*
pp_block
)
if
(
pp_block
&&
*
pp_block
)
{
{
p_block
=
*
pp_block
;
p_block
=
*
pp_block
;
*
pp_block
=
p_block
->
p_next
;
*
pp_block
=
NULL
;
p_block
->
p_next
=
NULL
;
if
(
p_block
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
/* silently discard corruption sentinels,
* synchronizer will then discard affected data units.
* do not produce an EOS data unit as this is very
* disruptive to the stream (and may make a larger error). */
block_Release
(
p_block
);
continue
;
}
if
(
p_block
->
i_flags
&
BLOCK_FLAG_DISCONTINUITY
)
if
(
p_block
->
i_flags
&
BLOCK_FLAG_DISCONTINUITY
)
{
{
/* pre-emptively insert an EOS at a discontinuity, protects
/* pre-emptively insert an EOS at a discontinuity, protects
...
@@ -1258,7 +1248,17 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
...
@@ -1258,7 +1248,17 @@ static block_t *Packetize( decoder_t *p_dec, block_t **pp_block )
* duplicates get discarded in forming encapsulation unit */
* duplicates get discarded in forming encapsulation unit */
}
}
}
}
block_BytestreamPush
(
&
p_sys
->
bytestream
,
p_block
);
else
if
(
p_block
->
i_flags
&
BLOCK_FLAG_CORRUPTED
)
{
/* silently discard corruption sentinels,
* synchronizer will then discard affected data units.
* do not produce an EOS data unit as this is very
* disruptive to the stream (and may make a larger error). */
block_Release
(
p_block
);
p_block
=
NULL
;
}
if
(
p_block
)
block_BytestreamPush
(
&
p_sys
->
bytestream
,
p_block
);
}
}
/* form as many encapsulation units as possible, give up
/* form as many encapsulation units as possible, give up
...
@@ -1438,9 +1438,6 @@ static void Close( vlc_object_t *p_this )
...
@@ -1438,9 +1438,6 @@ static void Close( vlc_object_t *p_this )
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_t
*
p_dec
=
(
decoder_t
*
)
p_this
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
if
(
!
p_sys
)
return
;
block_BytestreamRelease
(
&
p_sys
->
bytestream
);
block_BytestreamRelease
(
&
p_sys
->
bytestream
);
if
(
p_sys
->
p_outqueue
)
if
(
p_sys
->
p_outqueue
)
block_ChainRelease
(
p_sys
->
p_outqueue
);
block_ChainRelease
(
p_sys
->
p_outqueue
);
...
...
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