avformat/rmdec: Clear extradata when extradata_size is cleared

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/228/head
Michael Niedermayer 9 years ago
parent a170365ae9
commit 0219dc6c07
  1. 1
      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;

Loading…
Cancel
Save