aboutsummaryrefslogtreecommitdiff
path: root/libavformat/yop.c
diff options
context:
space:
mode:
authorJames Almer2016-04-14 15:55:10 -0300
committerJames Almer2016-04-14 15:55:10 -0300
commitc8ed93efcf4d52babb7dd1d2dec6c564bbda6da5 (patch)
tree452e4f51644b123e02dfeff16a20b790d9b3ef33 /libavformat/yop.c
parent9cd2ca9966d0f6c07192a01cbe6184bba0167d05 (diff)
avformat/yop: alloc codecpar extradata only once
Fixes memleak Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/yop.c')
-rw-r--r--libavformat/yop.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavformat/yop.c b/libavformat/yop.c
index 997ca4b745..e6fd896668 100644
--- a/libavformat/yop.c
+++ b/libavformat/yop.c
@@ -72,12 +72,6 @@ static int yop_read_header(AVFormatContext *s)
if (ff_alloc_extradata(video_stream->codecpar, 8))
return AVERROR(ENOMEM);
- video_stream->codecpar->extradata = av_mallocz(8 + AV_INPUT_BUFFER_PADDING_SIZE);
-
- if (!video_stream->codecpar->extradata)
- return AVERROR(ENOMEM);
- video_stream->codecpar->extradata_size = 8;
-
// Audio
audio_par = audio_stream->codecpar;
audio_par->codec_type = AVMEDIA_TYPE_AUDIO;