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
256FF_ENABLE_DEPRECATION_WARNINGS256FF_ENABLE_DEPRECATION_WARNINGS
257#endif257#endif
258 258
259#if FF_API_FRAME_KEY
260FF_DISABLE_DEPRECATION_WARNINGS
259 if (copy->key_frame)261 if (copy->key_frame)
260 copy->flags |= AV_FRAME_FLAG_KEY;262 copy->flags |= AV_FRAME_FLAG_KEY;
263FF_ENABLE_DEPRECATION_WARNINGS
264#endif
261 265
262 ret = ff_filter_frame(ctx->outputs[0], copy);266 ret = ff_filter_frame(ctx->outputs[0], copy);
263 if (ret < 0)267 if (ret < 0)
libavfilter/vf_coreimage.m+2−0
@@ -301,7 +301,9 @@ static int request_frame(AVFilterLink *link) · 300 unmodified lines
301 301
302 frame->pts = ctx->pts;302 frame->pts = ctx->pts;
303 frame->duration = 1;303 frame->duration = 1;
304#if FF_API_FRAME_KEY
304 frame->key_frame = 1;305 frame->key_frame = 1;
306#endif
305 frame->flags |= AV_FRAME_FLAG_KEY307 frame->flags |= AV_FRAME_FLAG_KEY
306#if FF_API_INTERLACED_FRAME308#if FF_API_INTERLACED_FRAME
307 frame->interlaced_frame = 0;309 frame->interlaced_frame = 0;
libavfilter/vsrc_gradients.c+5−0
@@ -397,7 +397,12 @@ static int activate(AVFilterContext *ctx) · 396 unmodified lines
397 if (!frame)397 if (!frame)
398 return AVERROR(ENOMEM);398 return AVERROR(ENOMEM);
399 399
400#if FF_API_FRAME_KEY
401FF_DISABLE_DEPRECATION_WARNINGS
400 frame->key_frame = 1;402 frame->key_frame = 1;
403FF_ENABLE_DEPRECATION_WARNINGS
404#endif
405
401 frame->flags |= AV_FRAME_FLAG_KEY;406 frame->flags |= AV_FRAME_FLAG_KEY;
402#if FF_API_INTERLACED_FRAME407#if FF_API_INTERLACED_FRAME
403FF_DISABLE_DEPRECATION_WARNINGS408FF_DISABLE_DEPRECATION_WARNINGS
libavfilter/vsrc_testsrc.c+4−0
@@ -184,7 +184,11 @@ static int activate(AVFilterContext *ctx) · 183 unmodified lines
184 return AVERROR(ENOMEM);184 return AVERROR(ENOMEM);
185 frame->pts = test->pts;185 frame->pts = test->pts;
186 frame->duration = 1;186 frame->duration = 1;
187#if FF_API_PKT_DURATION
188FF_DISABLE_DEPRECATION_WARNINGS
187 frame->key_frame = 1;189 frame->key_frame = 1;
190FF_ENABLE_DEPRECATION_WARNINGS
191#endif
188 frame->flags |= AV_FRAME_FLAG_KEY;192 frame->flags |= AV_FRAME_FLAG_KEY;
189#if FF_API_INTERLACED_FRAME193#if FF_API_INTERLACED_FRAME
190FF_DISABLE_DEPRECATION_WARNINGS194FF_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