History

avutil/frame: deprecate key_frame

James Almer committed 3 years ago

Commit 3e06f6f1 parent c7a86819 files · +33 −1Browse files

Showing the changes to libavfilter (4 of 9 files). Show all

Unified · Split

4 files
  1. libavfilter/buffersrc.c +4 −0
  2. libavfilter/vf_coreimage.m +2 −0
  3. libavfilter/vsrc_gradients.c +5 −0
  4. libavfilter/vsrc_testsrc.c +4 −0
libavfilter/buffersrc.c+4−0
@@ -256,8 +256,12 @@ FF_DISABLE_DEPRECATION_WARNINGS · 255 unmodified lines
256256 FF_ENABLE_DEPRECATION_WARNINGS
257257 #endif
258258
259+#if FF_API_FRAME_KEY
260+FF_DISABLE_DEPRECATION_WARNINGS
259261 if (copy->key_frame)
260262 copy->flags |= AV_FRAME_FLAG_KEY;
263+FF_ENABLE_DEPRECATION_WARNINGS
264+#endif
261265
262266 ret = ff_filter_frame(ctx->outputs[0], copy);
263267 if (ret < 0)
libavfilter/vf_coreimage.m+2−0
@@ -301,7 +301,9 @@ static int request_frame(AVFilterLink *link) · 300 unmodified lines
301301
302302 frame->pts = ctx->pts;
303303 frame->duration = 1;
304+#if FF_API_FRAME_KEY
304305 frame->key_frame = 1;
306+#endif
305307 frame->flags |= AV_FRAME_FLAG_KEY
306308 #if FF_API_INTERLACED_FRAME
307309 frame->interlaced_frame = 0;
libavfilter/vsrc_gradients.c+5−0
@@ -397,7 +397,12 @@ static int activate(AVFilterContext *ctx) · 396 unmodified lines
397397 if (!frame)
398398 return AVERROR(ENOMEM);
399399
400+#if FF_API_FRAME_KEY
401+FF_DISABLE_DEPRECATION_WARNINGS
400402 frame->key_frame = 1;
403+FF_ENABLE_DEPRECATION_WARNINGS
404+#endif
405+
401406 frame->flags |= AV_FRAME_FLAG_KEY;
402407 #if FF_API_INTERLACED_FRAME
403408 FF_DISABLE_DEPRECATION_WARNINGS
libavfilter/vsrc_testsrc.c+4−0
@@ -184,7 +184,11 @@ static int activate(AVFilterContext *ctx) · 183 unmodified lines
184184 return AVERROR(ENOMEM);
185185 frame->pts = test->pts;
186186 frame->duration = 1;
187+#if FF_API_PKT_DURATION
188+FF_DISABLE_DEPRECATION_WARNINGS
187189 frame->key_frame = 1;
190+FF_ENABLE_DEPRECATION_WARNINGS
191+#endif
188192 frame->flags |= AV_FRAME_FLAG_KEY;
189193 #if FF_API_INTERLACED_FRAME
190194 FF_DISABLE_DEPRECATION_WARNINGS

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