[FFmpeg-devel,2/2] fftools/cmdutils.c: silence an avresample related deprecation warning

Submitted by James Almer on Jan. 4, 2018, 6:41 p.m.

Details

Message ID 20180104184116.3720-2-jamrial@gmail.com
State New
Headers show

Commit Message

James Almer Jan. 4, 2018, 6:41 p.m.
Signed-off-by: James Almer <jamrial@gmail.com>
---
 fftools/cmdutils.c | 2 ++
 1 file changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 6920ca0764..f66591548a 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -550,7 +550,9 @@  int opt_default(void *optctx, const char *opt, const char *arg)
     const char *p;
     const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class();
 #if CONFIG_AVRESAMPLE
+FF_DISABLE_DEPRECATION_WARNINGS
     const AVClass *rc = avresample_get_class();
+FF_ENABLE_DEPRECATION_WARNINGS
 #endif
 #if CONFIG_SWSCALE
     const AVClass *sc = sws_get_class();