History

avfilter/vf_hflip: Don't call av_pix_fmt_desc_get() twice

Andreas Rheinhardt committed 5 years ago

Commit d8ca8be1 parent 73a59ed1 file · +2 −2Browse files

Unified · Split

libavfilter/vf_hflip.c+2−2
@@ -46,10 +46,10 @@ AVFILTER_DEFINE_CLASS(hflip); · 45 unmodified lines
46static int query_formats(AVFilterContext *ctx)46static int query_formats(AVFilterContext *ctx)
47{47{
48 AVFilterFormats *pix_fmts = NULL;48 AVFilterFormats *pix_fmts = NULL;
49 const AVPixFmtDescriptor *desc;
49 int fmt, ret;50 int fmt, ret;
50 51
51 for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) {52 for (fmt = 0; desc = av_pix_fmt_desc_get(fmt); fmt++) {
52 const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
53 if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||53 if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
54 desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ||54 desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ||
55 (desc->log2_chroma_w != desc->log2_chroma_h &&55 (desc->log2_chroma_w != desc->log2_chroma_h &&

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