svnno****@sourc*****
svnno****@sourc*****
2008年 8月 11日 (月) 18:37:56 JST
Revision: 38 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=swfed&view=rev&rev=38 Author: yoya Date: 2008-08-11 18:37:56 +0900 (Mon, 11 Aug 2008) Log Message: ----------- sound format の数値表示不具合を修正 Modified Paths: -------------- src/swf_tag_sound.c -------------- next part -------------- Modified: src/swf_tag_sound.c =================================================================== --- src/swf_tag_sound.c 2008-08-10 17:54:06 UTC (rev 37) +++ src/swf_tag_sound.c 2008-08-11 09:37:56 UTC (rev 38) @@ -113,7 +113,7 @@ char *format_name = "Unknown"; (void) tag; (void) swf; - switch(swf_tag_sound->sound_format) { + switch(swf_tag_sound->sound_format & 0x0f) { case 0: format_name = "Raw"; break; @@ -134,8 +134,8 @@ printf("\tsound_id=%d\n", swf_tag_sound->sound_id); printf("\tformat=%u(%s) rate=%u is_16bits=%u is_stereo=%u samples_count=%lu\n", - swf_tag_sound->sound_format, format_name, - swf_tag_sound->sound_rate, + swf_tag_sound->sound_format & 0x0f, format_name, + swf_tag_sound->sound_rate & 0x03, swf_tag_sound->sound_is_16bits?1:0, swf_tag_sound->sound_is_stereo?1:0, swf_tag_sound->sound_samples_count);