[vlc-commits] packetizer: flac: fix infinite loop
Francois Cartegnie
git at videolan.org
Thu May 23 17:40:32 CEST 2019
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Apr 30 20:17:56 2019 +0200| [6c0e7f7c01b90e0c5d875e85572cc35c432883ab] | committer: Hugo Beauzée-Luyssen
packetizer: flac: fix infinite loop
(cherry picked from commit 889fbe9a7338d9ebfbb7fa7e40e4a2ae0434e1fb)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=6c0e7f7c01b90e0c5d875e85572cc35c432883ab
---
modules/packetizer/flac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index ff5e1ac076..a1a2b5fea4 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -466,7 +466,7 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
p_sys->crc = flac_crc16( p_sys->crc, p_sys->p_buf[p_sys->i_offset - 2] );
p_sys->crc = flac_crc16( p_sys->crc, p_sys->p_buf[p_sys->i_offset - 1] );
p_sys->i_offset += 1;
- p_sys->i_state = STATE_NEXT_SYNC;
+ p_sys->i_state = !pp_block ? STATE_NOSYNC : STATE_NEXT_SYNC;
break; /* continue */
}
More information about the vlc-commits
mailing list