summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/rmdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index cb0481ed4d..0d3b56f1b5 100644
--- a/libavformat/rmdec.c
+++ b/libavformat/rmdec.c
@@ -207,6 +207,7 @@ static int rm_read_audio_stream_info(AVFormatContext *s, AVIOContext *pb,
break;
case AV_CODEC_ID_RA_288:
st->codecpar->extradata_size= 0;
+ av_freep(&st->codecpar->extradata);
ast->audio_framesize = st->codecpar->block_align;
st->codecpar->block_align = coded_framesize;
break;