[prev in list] [next in list] [prev in thread] [next in thread]
List: xine-cvslog
Subject: [xine-cvs] =?utf-8?q?HG=3A_xine-lib-1=2E2=3A_Fix_implicit_fall_th?= =?utf-8?q?rough_warning?=
From: Petri_Hintukainen via Xine-cvslog <xine-cvslog () lists ! sourceforge ! net
Date: 2017-11-16 11:17:47
Message-ID: bcf40c7420210b256007.1510829019 () hg ! debian ! org
[Download RAW message or body]
# HG changeset patch
# User Petri Hintukainen <phintuka@users.sourceforge.net>
# Date 1510829019 -7200
# Node ID bcf40c7420210b256007f2b6472314a62812c6ee
# Branch default
# Parent f1b75c804b0a5ef68d24064dca2d42ffa497f322
Fix implicit fall through warning
diff --git a/src/audio_dec/xine_dts_decoder.c b/src/audio_dec/xine_dts_decoder.c
--- a/src/audio_dec/xine_dts_decoder.c
+++ b/src/audio_dec/xine_dts_decoder.c
@@ -432,10 +432,11 @@
case 2: /* Filling frame_buffer with sync_info bytes */
*this->frame_ptr++ = *current++;
this->frame_todo--;
- if (this->frame_todo < 1) {
- this->sync_state = 3;
- } else break;
-
+ if (this->frame_todo > 0) {
+ break;
+ }
+ this->sync_state = 3;
+ /* fall through */
case 3: /* Ready for decode */
#if 0
dtsdec_decode_frame (this, this->pts_list[0]);
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Xine-cvslog mailing list
Xine-cvslog@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xine-cvslog
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic