OSDN Git Service

[Qt][SOUND_LOADER] Remove a warning.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 23 Oct 2016 20:35:10 +0000 (05:35 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sun, 23 Oct 2016 20:35:10 +0000 (05:35 +0900)
source/src/qt/avio/sound_loader.cpp

index d88e43c..9f2e1a7 100644 (file)
@@ -296,7 +296,7 @@ int SOUND_LOADER::do_decode_frames(void)
        }
 #if defined(USE_LIBAV) 
        _data_size = 65536 * 2 * sizeof(int16_t);
-       sound_buffer = malloc(_data_size);
+       sound_buffer = (int16_t *)malloc(_data_size);
        if(sound_buffer == NULL) {
                return -1;
        }