Commit a368920e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/options: Silence deprecated warning about coded_frame

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 94c0df79
...@@ -213,7 +213,11 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src) ...@@ -213,7 +213,11 @@ int avcodec_copy_context(AVCodecContext *dest, const AVCodecContext *src)
dest->slice_offset = NULL; dest->slice_offset = NULL;
dest->hwaccel = NULL; dest->hwaccel = NULL;
dest->internal = NULL; dest->internal = NULL;
#if FF_API_CODED_FRAME
FF_DISABLE_DEPRECATION_WARNINGS
dest->coded_frame = NULL; dest->coded_frame = NULL;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
/* reallocate values that should be allocated separately */ /* reallocate values that should be allocated separately */
dest->extradata = NULL; dest->extradata = NULL;
......
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