Commit 190d4a44 authored by Diego Biurrun's avatar Diego Biurrun

avcodec: Suppress deprecation warnings from avcodec_alloc_frame()

The function is itself obsolete and slated for removal.
parent d509ae5b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment