History

avcodec/svq1enc: Remove always-false check

The pixel format has already been checked generically via CODEC_PIXFMTS.

Andreas Rheinhardt committed 1 year ago

Commit 88ce3da1 parent 53a01211 file · +0 −5Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/svq1enc.c+0−5
@@ -644,11 +644,6 @@ static int svq1_encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 643 unmodified lines
644644 if (ret < 0)
645645 return ret;
646646
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−
652647 if (!s->current_picture->data[0]) {
653648 if ((ret = ff_encode_alloc_frame(avctx, s->current_picture)) < 0) {
654649 return ret;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t