Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-09-28 15:22:08 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-02 17:30:19 +0300
commit39d28ea4d5bac9bb688e482990c8979ef9df954c (patch)
treedd9589baf6cfee8e2e889a494c1d548de6c68400 /libavcodec/magicyuvenc.c
parentc10a2959c0972994e88ae1f92d44056b1138c0d1 (diff)
avcodec/magicyuvenc: Remove redundant pixel format check
ff_encode_preinit() already checked the pixel format via AVCodec.pix_fmts. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/magicyuvenc.c')
-rw-r--r--libavcodec/magicyuvenc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c
index 7ab5e61ffe..ab32d4cee3 100644
--- a/libavcodec/magicyuvenc.c
+++ b/libavcodec/magicyuvenc.c
@@ -189,10 +189,6 @@ static av_cold int magy_encode_init(AVCodecContext *avctx)
avctx->codec_tag = MKTAG('M', '8', 'G', '0');
s->format = 0x6b;
break;
- default:
- av_log(avctx, AV_LOG_ERROR, "Unsupported pixel format: %d\n",
- avctx->pix_fmt);
- return AVERROR_INVALIDDATA;
}
ff_llvidencdsp_init(&s->llvidencdsp);