소스 검색

fixed warning

ncannasse 6 년 전
부모
커밋
399895d7d6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libs/fmt/fmt.c

+ 1 - 1
libs/fmt/fmt.c

@@ -479,7 +479,7 @@ HL_PRIM int HL_NAME(mp3_decode_frame)( fmt_mp3 *o, char *bytes, int size, int po
 	hl_blocking(true);
 
 	do {
-		samples = mp3dec_decode_frame(&o->dec, bytes + position, size - position, o->pcm, &o->info);
+		samples = mp3dec_decode_frame(&o->dec, (unsigned char*)bytes + position, size - position, o->pcm, &o->info);
 		// Try to read until found mp3 data or EOF.
 		if ( samples != 0 || o->info.frame_bytes == 0 )
 			break;