summaryrefslogtreecommitdiff
path: root/libavformat/yop.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/yop.c')
-rw-r--r--libavformat/yop.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libavformat/yop.c b/libavformat/yop.c
index e962b093e8..07086d53b8 100644
--- a/libavformat/yop.c
+++ b/libavformat/yop.c
@@ -69,12 +69,7 @@ static int yop_read_header(AVFormatContext *s)
return AVERROR(ENOMEM);
// Extra data that will be passed to the decoder
- video_stream->codec->extradata_size = 8;
-
- video_stream->codec->extradata = av_mallocz(video_stream->codec->extradata_size +
- FF_INPUT_BUFFER_PADDING_SIZE);
-
- if (!video_stream->codec->extradata)
+ if (ff_alloc_extradata(video_stream->codec, 8))
return AVERROR(ENOMEM);
// Audio