mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/utils: implement avcodec_alloc_frame() through av_alloc_frame()
This ensures that theres just one AVFrame allocation function and libs dont produce multiple AVFrame variants after a minor lib update Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6aed7bfd84
commit
5abdda214d
@ -1067,15 +1067,7 @@ void avcodec_get_frame_defaults(AVFrame *frame)
|
||||
|
||||
AVFrame *avcodec_alloc_frame(void)
|
||||
{
|
||||
AVFrame *frame = av_malloc(sizeof(AVFrame));
|
||||
|
||||
if (frame == NULL)
|
||||
return NULL;
|
||||
|
||||
frame->extended_data = NULL;
|
||||
avcodec_get_frame_defaults(frame);
|
||||
|
||||
return frame;
|
||||
return av_frame_alloc();
|
||||
}
|
||||
|
||||
void avcodec_free_frame(AVFrame **frame)
|
||||
|
Loading…
Reference in New Issue
Block a user