[vlc-commits] packetizer: flac: clear some warnings
Francois Cartegnie
git at videolan.org
Wed Nov 8 20:34:48 CET 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Nov 8 20:34:10 2017 +0100| [601289ef4626d3bb25e555a31174b8192e74df76] | committer: Francois Cartegnie
packetizer: flac: clear some warnings
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=601289ef4626d3bb25e555a31174b8192e74df76
---
modules/packetizer/flac.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c
index 309804a289..07729c712a 100644
--- a/modules/packetizer/flac.c
+++ b/modules/packetizer/flac.c
@@ -620,12 +620,14 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
if( p_sys->i_state != STATE_SYNC )
return NULL; /* Need more data */
+ /* fallthrough */
case STATE_SYNC:
/* Sync state is unverified until we have read frame header and checked CRC
Once validated, we'll send data from NEXT_SYNC state where we'll
compute frame size */
p_sys->i_state = STATE_HEADER;
+ /* fallthrough */
case STATE_HEADER:
/* Get FLAC frame header (MAX_FLAC_HEADER_SIZE bytes) */
@@ -659,6 +661,8 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
* The confusing part below is that sync code needs to be verified in case
* it would appear in data, so we also need to check next frame header CRC
*/
+ /* fallthrough */
+
case STATE_NEXT_SYNC:
{
if(block_FindStartcodeFromOffset(&p_sys->bytestream, &p_sys->i_offset,
More information about the vlc-commits
mailing list