[vlc-commits] packetizer: a52: clear warnings

Francois Cartegnie git at videolan.org
Thu Nov 9 11:11:32 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov  9 10:28:44 2017 +0100| [f6991e506f8ba446abd74d85f7be74a4eaae2494] | committer: Francois Cartegnie

packetizer: a52: clear warnings

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6991e506f8ba446abd74d85f7be74a4eaae2494
---

 modules/packetizer/a52.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/packetizer/a52.c b/modules/packetizer/a52.c
index 197ee6c698..0404f78a01 100644
--- a/modules/packetizer/a52.c
+++ b/modules/packetizer/a52.c
@@ -177,6 +177,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
                 /* Need more data */
                 return NULL;
             }
+            /* fallthrough */
 
         case STATE_SYNC:
             /* New frame, set the Presentation Time Stamp */
@@ -187,6 +188,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
                 date_Set( &p_sys->end_date, p_sys->i_pts );
             }
             p_sys->i_state = STATE_HEADER;
+            /* fallthrough */
 
         case STATE_HEADER:
             /* Get A/52 frame header (VLC_A52_HEADER_SIZE bytes) */
@@ -217,6 +219,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
                 p_sys->frame = a52;
 
             p_sys->i_state = STATE_NEXT_SYNC;
+            /* fallthrough */
 
         case STATE_NEXT_SYNC:
             /* Check if next expected frame contains the sync word */
@@ -260,6 +263,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
                 return NULL;
             }
             p_sys->i_state = STATE_SEND_DATA;
+            /* fallthrough */
 
         case STATE_SEND_DATA:
             if( !(p_out_buffer = GetOutBuffer( p_dec )) )



More information about the vlc-commits mailing list