1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/utvideoenc: Remove always-false pixel format check

Mark it as unreachable instead.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2021-10-03 15:32:18 +02:00
parent d7d1379d06
commit 22e6e4e914

View File

@ -24,6 +24,7 @@
* Ut Video encoder
*/
#include "libavutil/avassert.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
@ -143,9 +144,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx)
original_format = UTVIDEO_444;
break;
default:
av_log(avctx, AV_LOG_ERROR, "Unknown pixel format: %d\n",
avctx->pix_fmt);
return AVERROR_INVALIDDATA;
av_unreachable("Already checked via CODEC_PIXFMTS");
}
ff_bswapdsp_init(&c->bdsp);