Commit debb8877 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '990e2f35'

* commit '990e2f35':
  avcodec: Suppress deprecation warnings from DTG code scheduled for removal
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 6b646fb9 990e2f35
......@@ -2306,7 +2306,9 @@ static void mpeg_decode_user_data(AVCodecContext *avctx,
if (buf_end - p < 1)
return;
#if FF_API_AFD
FF_DISABLE_DEPRECATION_WARNINGS
avctx->dtg_active_format = p[0] & 0x0f;
FF_ENABLE_DEPRECATION_WARNINGS
#endif /* FF_API_AFD */
s1->has_afd = 1;
s1->afd = p[0] & 0x0f;
......
......@@ -38,12 +38,14 @@
#include "internal.h"
#include "pthread_internal.h"
#include "thread.h"
#include "version.h"
#include "libavutil/avassert.h"
#include "libavutil/buffer.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/frame.h"
#include "libavutil/internal.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
......@@ -208,7 +210,11 @@ static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src,
dst->bits_per_coded_sample = src->bits_per_coded_sample;
dst->sample_aspect_ratio = src->sample_aspect_ratio;
#if FF_API_AFD
FF_DISABLE_DEPRECATION_WARNINGS
dst->dtg_active_format = src->dtg_active_format;
FF_ENABLE_DEPRECATION_WARNINGS
#endif /* FF_API_AFD */
dst->profile = src->profile;
dst->level = src->level;
......
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