Display and control your Android device
Allocate extradata with av_malloc()
Romain Vimontf5f4e6b1c5f8
diff --git a/app/src/recorder.c b/app/src/recorder.cindex ea5a84d8..d69953dc 100644--- a/app/src/recorder.c+++ b/app/src/recorder.c@@ -135,7 +135,7 @@ static SDL_boolrecorder_write_header(struct recorder *recorder, AVPacket *packet) {AVStream *ostream = recorder->ctx->streams[0];- uint8_t *extradata = SDL_malloc(packet->size * sizeof(uint8_t));+ uint8_t *extradata = av_malloc(packet->size * sizeof(uint8_t));if (!extradata) {LOGC("Cannot allocate extradata");return SDL_FALSE;