The pixel format has already been checked generically via CODEC_PIXFMTS.
Unified · Split
| @@ -644,11 +644,6 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 643 unmodified lines | ||
| 644 | 644 | if (ret < 0) |
| 645 | 645 | return ret; |
| 646 | 646 | |
| 647 | − if (avctx->pix_fmt != AV_PIX_FMT_YUV410P) { | |
| 648 | − av_log(avctx, AV_LOG_ERROR, "unsupported pixel format\n"); | |
| 649 | − return -1; | |
| 650 | − } | |
| 651 | − | |
| 652 | 647 | if (!s->current_picture->data[0]) { |
| 653 | 648 | if ((ret = ff_encode_alloc_frame(avctx, s->current_picture)) < 0) { |
| 654 | 649 | return ret; |