[vlc-commits] packetizer: a52: fix assertion on E-AC3 substreams
Francois Cartegnie
git at videolan.org
Mon Nov 20 18:55:47 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Nov 20 18:54:31 2017 +0100| [0547c4a97b60636335eeab84e8d6aa45432b96ff] | committer: Francois Cartegnie
packetizer: a52: fix assertion on E-AC3 substreams
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0547c4a97b60636335eeab84e8d6aa45432b96ff
---
modules/packetizer/a52.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/modules/packetizer/a52.c b/modules/packetizer/a52.c
index ebb5a02725..5f9639e3e7 100644
--- a/modules/packetizer/a52.c
+++ b/modules/packetizer/a52.c
@@ -218,6 +218,13 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
if( a52.b_eac3 && a52.eac3.strmtyp != EAC3_STRMTYP_INDEPENDENT )
{
/* Use the channel configuration of the independent stream */
+ if( !p_sys->frame.i_blocks_per_sync_frame )
+ {
+ /* Not synced on main stream yet */
+ block_SkipByte( &p_sys->bytestream );
+ p_sys->i_state = STATE_NOSYNC;
+ break;
+ }
p_sys->frame.i_samples = a52.i_samples;
p_sys->frame.i_size = a52.i_size;
}
More information about the vlc-commits
mailing list