svnno****@sourc*****
svnno****@sourc*****
2008年 10月 10日 (金) 19:45:30 JST
Revision: 69 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=swfed&view=rev&rev=69 Author: yoya Date: 2008-10-10 19:45:30 +0900 (Fri, 10 Oct 2008) Log Message: ----------- 変数名の見直し sound_data => sound_data_ref (後で free されないように) Modified Paths: -------------- trunk/src/swf_tag_sound.c -------------- next part -------------- Modified: trunk/src/swf_tag_sound.c =================================================================== --- trunk/src/swf_tag_sound.c 2008-10-10 10:43:19 UTC (rev 68) +++ trunk/src/swf_tag_sound.c 2008-10-10 10:45:30 UTC (rev 69) @@ -29,7 +29,7 @@ swf_tag_sound_detail_t *swf_tag_sound; bitstream_t *bs; unsigned long sound_data_len; - unsigned char *sound_data; + unsigned char *sound_data_ref; (void) tag; (void) swf; swf_tag_sound = calloc(sizeof(*swf_tag_sound), 1); @@ -53,8 +53,8 @@ bitstream_close(bs); return NULL; } - sound_data = bitstream_buffer(bs, bitstream_getbytepos(bs)); - memcpy(swf_tag_sound->sound_data, sound_data, sound_data_len); + sound_data_ref = bitstream_buffer(bs, bitstream_getbytepos(bs)); + memcpy(swf_tag_sound->sound_data, sound_data_ref, sound_data_len); swf_tag_sound->sound_data_len = sound_data_len; bitstream_close(bs); return (void *) swf_tag_sound;