[FFmpeg-cvslog] avformat/rmdec: Clear extradata when extradata_size is cleared
Michael Niedermayer
git at videolan.org
Sat Jul 30 01:29:05 EEST 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Jul 29 02:45:16 2016 +0200| [0219dc6c072586a14c641d108ef3e7da70fecae7] | committer: Michael Niedermayer
avformat/rmdec: Clear extradata when extradata_size is cleared
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0219dc6c072586a14c641d108ef3e7da70fecae7
---
libavformat/rmdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/rmdec.c b/libavformat/rmdec.c
index cb0481e..0d3b56f 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;
More information about the ffmpeg-cvslog
mailing list