[libbluray-devel] Cosmetics (add comments)
hpi1
git at videolan.org
Fri Oct 9 11:34:46 CEST 2015
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Oct 7 13:03:02 2015 +0300| [2a18764a08be02c5f1404d54e6c207de31a6e5c9] | committer: hpi1
Cosmetics (add comments)
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=2a18764a08be02c5f1404d54e6c207de31a6e5c9
---
src/libbluray/bdnav/sound_parse.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/libbluray/bdnav/sound_parse.c b/src/libbluray/bdnav/sound_parse.c
index 677eb2a..b5d11fd 100644
--- a/src/libbluray/bdnav/sound_parse.c
+++ b/src/libbluray/bdnav/sound_parse.c
@@ -65,6 +65,7 @@ static int _sound_parse_attributes(BITSTREAM *bs, SOUND_OBJECT *obj)
switch (i = bs_read(bs, 4)) {
default: BD_DEBUG(DBG_NAV, "unknown channel configuration code %d\n", i);
+ /* fall thru */
case 1: obj->num_channels = 1;
break;
case 3: obj->num_channels = 2;
@@ -72,11 +73,13 @@ static int _sound_parse_attributes(BITSTREAM *bs, SOUND_OBJECT *obj)
};
switch (i = bs_read(bs, 4)) {
default: BD_DEBUG(DBG_NAV, "unknown sample rate code %d\n", i);
+ /* fall thru */
case 1: obj->sample_rate = 48000;
break;
};
switch (i = bs_read(bs, 2)) {
default: BD_DEBUG(DBG_NAV, "unknown bits per sample code %d\n", i);
+ /* fall thru */
case 1: obj->bits_per_sample = 16;
break;
};
More information about the libbluray-devel
mailing list