diff options
author | Andriy Gelman <andriy.gelman@gmail.com> | 2019-11-12 00:37:02 -0500 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-11-22 12:06:28 -0800 |
commit | ccc83ff11e071939acc198f118b1e5dd86fd9a42 (patch) | |
tree | 25f227c4123713a558b1a2b4b63ec0f7bdbcdf56 | |
parent | f2a01b4c8bf6e40ad3b700901449338bc713bd59 (diff) | |
download | ffmpeg-ccc83ff11e071939acc198f118b1e5dd86fd9a42.tar.gz |
avcodec/v4l2_m2m_dec: Fix decoding on Odroid XU4
c0c79461967 unintentianally changed the initialization flow of the
decoder: It caused the capture buffers to be initialized on
v4l2_m2m.c:180 in v4l2_configure_contexts(). This breaks h264 decoding
on the Odroid XU4 (RPI4 was not affected).
This commit postpones capture buffer initialization
as before c0c79461967 to fix the issue.
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Aman Gupta <aman@tmm1.net>
-rw-r--r-- | libavcodec/v4l2_m2m_dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v4l2_m2m_dec.c b/libavcodec/v4l2_m2m_dec.c index 4712aca34c..83d506b6b0 100644 --- a/libavcodec/v4l2_m2m_dec.c +++ b/libavcodec/v4l2_m2m_dec.c @@ -201,6 +201,7 @@ static av_cold int v4l2_decode_init(AVCodecContext *avctx) capture->av_codec_id = AV_CODEC_ID_RAWVIDEO; capture->av_pix_fmt = avctx->pix_fmt; + s->avctx = avctx; ret = ff_v4l2_m2m_codec_init(priv); if (ret) { av_log(avctx, AV_LOG_ERROR, "can't configure decoder\n"); @@ -209,7 +210,6 @@ static av_cold int v4l2_decode_init(AVCodecContext *avctx) return ret; } - s->avctx = avctx; return v4l2_prepare_decoder(s); } |