[vlc-commits] packetizer: mpegaudio: clear some warnings

Francois Cartegnie git at videolan.org
Wed Nov 8 10:25:51 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov  7 23:36:43 2017 +0100| [66bb91c0e7fb770a93ec7ca2381206aa51f0505c] | committer: Francois Cartegnie

packetizer: mpegaudio: clear some warnings

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

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

diff --git a/modules/packetizer/mpegaudio.c b/modules/packetizer/mpegaudio.c
index d2f0186234..00c50a5c3d 100644
--- a/modules/packetizer/mpegaudio.c
+++ b/modules/packetizer/mpegaudio.c
@@ -343,6 +343,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                 /* Need more data */
                 return NULL;
             }
+            /* fallthrough */
 
         case STATE_SYNC:
             /* New frame, set the Presentation Time Stamp */
@@ -361,6 +362,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                 }
             }
             p_sys->i_state = STATE_HEADER;
+            /* fallthrough */
 
         case STATE_HEADER:
             /* Get MPGA frame header (MPGA_HEADER_SIZE bytes) */
@@ -407,6 +409,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
             }
 
             p_sys->i_state = STATE_NEXT_SYNC;
+            /* fallthrough */
 
         case STATE_NEXT_SYNC:
             /* Check if next expected frame contains the sync word */
@@ -545,6 +548,7 @@ static block_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                 return NULL;
             }
             p_sys->i_state = STATE_SEND_DATA;
+            /* fallthrough */
 
         case STATE_SEND_DATA:
             if( !(p_buf = GetOutBuffer( p_dec, &p_out_buffer )) )



More information about the vlc-commits mailing list