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
297 297
298 frame->pts = ctx->pts;298 frame->pts = ctx->pts;
299 frame->duration = 1;299 frame->duration = 1;
300 frame->flags |= AV_FRAME_FLAG_KEY;
301 frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
302
303FF_DISABLE_DEPRECATION_WARNINGS
300#if FF_API_FRAME_KEY304#if FF_API_FRAME_KEY
301 frame->key_frame = 1;305 frame->key_frame = 1;
302#endif306#endif
303 frame->flags |= AV_FRAME_FLAG_KEY;
304#if FF_API_INTERLACED_FRAME307#if FF_API_INTERLACED_FRAME
305 frame->interlaced_frame = 0;308 frame->interlaced_frame = 0;
306#endif309#endif
307 frame->flags &= ~AV_FRAME_FLAG_INTERLACED;310FF_ENABLE_DEPRECATION_WARNINGS
311
308 frame->pict_type = AV_PICTURE_TYPE_I;312 frame->pict_type = AV_PICTURE_TYPE_I;
309 frame->sample_aspect_ratio = ctx->sar;313 frame->sample_aspect_ratio = ctx->sar;
310 314

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