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
4646 static int query_formats(AVFilterContext *ctx)
4747 {
4848 AVFilterFormats *pix_fmts = NULL;
49+ const AVPixFmtDescriptor *desc;
4950 int fmt, ret;
5051
51− for (fmt = 0; av_pix_fmt_desc_get(fmt); fmt++) {
52− const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
52+ for (fmt = 0; desc = av_pix_fmt_desc_get(fmt); fmt++) {
5353 if (!(desc->flags & AV_PIX_FMT_FLAG_HWACCEL ||
5454 desc->flags & AV_PIX_FMT_FLAG_BITSTREAM ||
5555 (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