lavc: deprecate avcodec_alloc_frame().
This commit is contained in:
parent
5b9c3b4505
commit
b9fb59d2ab
2 changed files with 6 additions and 5 deletions
|
@ -815,6 +815,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
|
|||
frame->extended_data = frame->data;
|
||||
}
|
||||
|
||||
#if FF_API_AVFRAME_LAVC
|
||||
AVFrame *avcodec_alloc_frame(void)
|
||||
{
|
||||
AVFrame *frame = av_mallocz(sizeof(AVFrame));
|
||||
|
@ -826,6 +827,7 @@ AVFrame *avcodec_alloc_frame(void)
|
|||
|
||||
return frame;
|
||||
}
|
||||
#endif
|
||||
|
||||
void avcodec_free_frame(AVFrame **frame)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue