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 | if (ret < 0) | 644 | if (ret < 0) |
| 645 | return ret; | 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 | if (!s->current_picture->data[0]) { | 647 | if (!s->current_picture->data[0]) { |
| 653 | if ((ret = ff_encode_alloc_frame(avctx, s->current_picture)) < 0) { | 648 | if ((ret = ff_encode_alloc_frame(avctx, s->current_picture)) < 0) { |
| 654 | return ret; | 649 | return ret; |