mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-29 06:20:29 +00:00
avcodec: Suppress deprecation warnings from avcodec_alloc_frame()
The function is itself obsolete and slated for removal.
This commit is contained in:
parent
d509ae5be0
commit
190d4a447b
@ -853,7 +853,9 @@ AVFrame *avcodec_alloc_frame(void)
|
||||
if (frame == NULL)
|
||||
return NULL;
|
||||
|
||||
FF_DISABLE_DEPRECATION_WARNINGS
|
||||
avcodec_get_frame_defaults(frame);
|
||||
FF_ENABLE_DEPRECATION_WARNINGS
|
||||
|
||||
return frame;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user