History

avfilter/drawutils: remove redundant xyz format check

The code above this does a whitelist on desc->flags, which now includes the (disallowed) AV_PIX_FMT_FLAG_XYZ for XYZ formats. So there is no more need for a separate check, here.

Niklas Haas committed 3 years ago

Commit d312a331 parent 57c16321 file · +0 −3Browse files

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

Unified · Split

libavfilter/drawutils.c+0−3
@@ -22,7 +22,6 @@ · 21 unmodified lines
2222 #include <string.h>
2323
2424 #include "libavutil/avassert.h"
25−#include "libavutil/avstring.h"
2625 #include "libavutil/avutil.h"
2726 #include "libavutil/csp.h"
2827 #include "libavutil/intreadwrite.h"
@@ -94,8 +93,6 @@ int ff_draw_init2(FFDrawContext *draw, enum AVPixelFormat format, enum AVColorSp · 65 unmodified lines
9493 return AVERROR(ENOSYS);
9594 if (desc->flags & ~(AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_RGB | AV_PIX_FMT_FLAG_ALPHA))
9695 return AVERROR(ENOSYS);
97− if (av_strstart(desc->name, "xyz", NULL))
98− return AVERROR(ENOSYS);
9996 if (csp == AVCOL_SPC_UNSPECIFIED)
10097 csp = (desc->flags & AV_PIX_FMT_FLAG_RGB) ? AVCOL_SPC_RGB : AVCOL_SPC_SMPTE170M;
10198 if (!(desc->flags & AV_PIX_FMT_FLAG_RGB) && !(luma = av_csp_luma_coeffs_from_avcsp(csp)))

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