[vlc-commits] packetizer: dts: clear warnings

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


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Nov  9 10:29:51 2017 +0100| [35ee573bea153cc36bb9537e3c4c006d5a989821] | committer: Francois Cartegnie

packetizer: dts: clear warnings

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

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

diff --git a/modules/packetizer/dts.c b/modules/packetizer/dts.c
index d9eb147ce9..ed8acd1d41 100644
--- a/modules/packetizer/dts.c
+++ b/modules/packetizer/dts.c
@@ -175,6 +175,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 */
@@ -185,6 +186,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 DTS frame header (VLC_DTS_HEADER_SIZE bytes) */
@@ -218,6 +220,7 @@ static block_t *PacketizeBlock( decoder_t *p_dec, block_t **pp_block )
 
             p_sys->i_input_size = p_sys->i_next_offset = p_sys->dts.i_frame_size;
             p_sys->i_state = STATE_NEXT_SYNC;
+            /* fallthrough */
 
         case STATE_NEXT_SYNC:
             /* Check if next expected frame contains the sync word */
@@ -289,6 +292,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