avcodec/svq1enc: Remove always-false check
The pixel format has already been checked generically via CODEC_PIXFMTS. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
53a012145a
commit
88ce3dade6
1 changed files with 0 additions and 5 deletions
|
|
@ -644,11 +644,6 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
if (avctx->pix_fmt != AV_PIX_FMT_YUV410P) {
|
||||
av_log(avctx, AV_LOG_ERROR, "unsupported pixel format\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!s->current_picture->data[0]) {
|
||||
if ((ret = ff_encode_alloc_frame(avctx, s->current_picture)) < 0) {
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue