History

avfilter/vf_coreimage: silence AVFrame deprecation warnings

Deprecation warning need to be disabled here as we set deprecated fields.

Marvin Scholz committed 2 years ago

Commit 10b3edb1 parent 799503f1 file · +6 −2Browse files

Unified · Split

libavfilter/vf_coreimage.m+6−2
@@ -297,14 +297,18 @@ static int request_frame(AVFilterLink *link) · 296 unmodified lines
297297
298298 frame->pts = ctx->pts;
299299 frame->duration = 1;
300+ frame->flags |= AV_FRAME_FLAG_KEY;
301+ frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
302+
303+FF_DISABLE_DEPRECATION_WARNINGS
300304 #if FF_API_FRAME_KEY
301305 frame->key_frame = 1;
302306 #endif
303− frame->flags |= AV_FRAME_FLAG_KEY;
304307 #if FF_API_INTERLACED_FRAME
305308 frame->interlaced_frame = 0;
306309 #endif
307− frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
310+FF_ENABLE_DEPRECATION_WARNINGS
311+
308312 frame->pict_type = AV_PICTURE_TYPE_I;
309313 frame->sample_aspect_ratio = ctx->sar;
310314

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