You've already forked FFmpeg
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:
@ -24,6 +24,7 @@
|
|||||||
* Ut Video encoder
|
* Ut Video encoder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/imgutils.h"
|
#include "libavutil/imgutils.h"
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "libavutil/mem.h"
|
#include "libavutil/mem.h"
|
||||||
@ -143,9 +144,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx)
|
|||||||
original_format = UTVIDEO_444;
|
original_format = UTVIDEO_444;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
av_log(avctx, AV_LOG_ERROR, "Unknown pixel format: %d\n",
|
av_unreachable("Already checked via CODEC_PIXFMTS");
|
||||||
avctx->pix_fmt);
|
|
||||||
return AVERROR_INVALIDDATA;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ff_bswapdsp_init(&c->bdsp);
|
ff_bswapdsp_init(&c->bdsp);
|
||||||
|
Reference in New Issue
Block a user