X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavutil%2Finternal.h;h=06bd561e82c0cf8a6106528a3a59e1dc77279c1d;hb=4737387d288d1e87e7c7df6203a42d6b1e88231e;hp=c77dfa7d3c2c9d842ae7985d23fa848288791e41;hpb=c1c720d5279aa2e8e0518e2900f5f2b267ee974a;p=ffmpeg diff --git a/libavutil/internal.h b/libavutil/internal.h index c77dfa7d3c2..06bd561e82c 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -360,4 +360,13 @@ void ff_check_pixfmt_descriptors(void); */ int avpriv_dict_set_timestamp(AVDictionary **dict, const char *key, int64_t timestamp); +// Helper macro for AV_PIX_FMT_FLAG_PSEUDOPAL deprecation. Code inside FFmpeg +// should always use FF_PSEUDOPAL. Once the public API flag gets removed, all +// code using it is dead code. +#if FF_API_PSEUDOPAL +#define FF_PSEUDOPAL AV_PIX_FMT_FLAG_PSEUDOPAL +#else +#define FF_PSEUDOPAL 0 +#endif + #endif /* AVUTIL_INTERNAL_H */