avutil/frame: deprecate key_frame
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
c7a8681860
commit
3e06f6f040
9 changed files with 33 additions and 1 deletions
|
|
@ -256,8 +256,12 @@ FF_DISABLE_DEPRECATION_WARNINGS
|
|||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
#if FF_API_FRAME_KEY
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
if (copy->key_frame)
|
||||
copy->flags |= AV_FRAME_FLAG_KEY;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
ret = ff_filter_frame(ctx->outputs[0], copy);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
|
|
@ -301,7 +301,9 @@ static int request_frame(AVFilterLink *link)
|
|||
|
||||
frame->pts = ctx->pts;
|
||||
frame->duration = 1;
|
||||
#if FF_API_FRAME_KEY
|
||||
frame->key_frame = 1;
|
||||
#endif
|
||||
frame->flags |= AV_FRAME_FLAG_KEY
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
frame->interlaced_frame = 0;
|
||||
|
|
|
|||
|
|
@ -397,7 +397,12 @@ static int activate(AVFilterContext *ctx)
|
|||
if (!frame)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
#if FF_API_FRAME_KEY
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->key_frame = 1;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
|
||||
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
|
|
|
|||
|
|
@ -184,7 +184,11 @@ static int activate(AVFilterContext *ctx)
|
|||
return AVERROR(ENOMEM);
|
||||
frame->pts = test->pts;
|
||||
frame->duration = 1;
|
||||
#if FF_API_PKT_DURATION
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
frame->key_frame = 1;
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
#endif
|
||||
frame->flags |= AV_FRAME_FLAG_KEY;
|
||||
#if FF_API_INTERLACED_FRAME
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue