diff options
author | wm4 <nfxjfg at googlemail.com> | 2015-09-24 08:49:41 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-09-24 10:34:38 +0200 |
commit | 49623f531972be5dc2dd8c1b4b8748cad7c424ff (patch) | |
tree | 45236e2ef9cf3818cac1f20ebc2b52c6470be145 /libavcodec | |
parent | f290e48d86e10f34b5ddc519127636bcebec7c43 (diff) | |
download | ffmpeg-49623f531972be5dc2dd8c1b4b8748cad7c424ff.tar.gz |
mmal: Remove setting extradata on input format
This works only for extradata sizes up to 128 bytes. Additionally, I
could never actually see it doing anything. The new code using
MMAL_BUFFER_HEADER_FLAG_CONFIG now takes care of this.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mmaldec.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libavcodec/mmaldec.c b/libavcodec/mmaldec.c index 5aaa54c6ec..fea3fc43b4 100644 --- a/libavcodec/mmaldec.c +++ b/libavcodec/mmaldec.c @@ -352,13 +352,6 @@ static av_cold int ffmmal_init_decoder(AVCodecContext *avctx) format_in->es->video.par.den = avctx->sample_aspect_ratio.den; format_in->flags = MMAL_ES_FORMAT_FLAG_FRAMED; - if (avctx->extradata_size) { - if ((status = mmal_format_extradata_alloc(format_in, avctx->extradata_size))) - goto fail; - format_in->extradata_size = avctx->extradata_size; - memcpy(format_in->extradata, avctx->extradata, format_in->extradata_size); - } - if ((status = mmal_port_format_commit(decoder->input[0]))) goto fail; |