History

avutil: remove deprecated FF_API_FRAME_KEY

Deprecated since 2023-05-04.

James Almer committed 1 year ago

Commit 10616891 parent 8af33318 files · +0 −48Browse files

Showing the changes to libavfilter (3 of 8 files). Show all

Unified · Split

3 files
  1. libavfilter/buffersrc.c +0 −7
  2. libavfilter/vf_coreimage.m +0 −7
  3. libavfilter/vsrc_gradients.c +0 −6
libavfilter/buffersrc.c+0−7
@@ -252,13 +252,6 @@ int attribute_align_arg av_buffersrc_add_frame_flags(AVFilterContext *ctx, AVFra · 251 unmodified lines
252252 return AVERROR(ENOMEM);
253253 }
254254
255−#if FF_API_FRAME_KEY
256−FF_DISABLE_DEPRECATION_WARNINGS
257− if (copy->key_frame)
258− copy->flags |= AV_FRAME_FLAG_KEY;
259−FF_ENABLE_DEPRECATION_WARNINGS
260−#endif
261−
262255 if (copy->colorspace == AVCOL_SPC_UNSPECIFIED)
263256 copy->colorspace = ctx->outputs[0]->colorspace;
264257 if (copy->color_range == AVCOL_RANGE_UNSPECIFIED)
libavfilter/vf_coreimage.m+0−7
@@ -299,13 +299,6 @@ static int request_frame(AVFilterLink *link) · 298 unmodified lines
299299 frame->duration = 1;
300300 frame->flags |= AV_FRAME_FLAG_KEY;
301301 frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
302−
303−FF_DISABLE_DEPRECATION_WARNINGS
304−#if FF_API_FRAME_KEY
305− frame->key_frame = 1;
306−#endif
307−FF_ENABLE_DEPRECATION_WARNINGS
308−
309302 frame->pict_type = AV_PICTURE_TYPE_I;
310303 frame->sample_aspect_ratio = ctx->sar;
311304
libavfilter/vsrc_gradients.c+0−6
@@ -408,12 +408,6 @@ static int activate(AVFilterContext *ctx) · 407 unmodified lines
408408 if (!frame)
409409 return AVERROR(ENOMEM);
410410
411−#if FF_API_FRAME_KEY
412−FF_DISABLE_DEPRECATION_WARNINGS
413− frame->key_frame = 1;
414−FF_ENABLE_DEPRECATION_WARNINGS
415−#endif
416−
417411 frame->flags |= AV_FRAME_FLAG_KEY;
418412 frame->flags &= ~AV_FRAME_FLAG_INTERLACED;
419413 frame->pict_type = AV_PICTURE_TYPE_I;

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