aboutsummaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorJames Almer2016-09-25 16:03:21 -0300
committerJames Almer2016-09-25 16:03:21 -0300
commitaa0dc698dba8ebf1e005ff0f948fe7783cd73364 (patch)
tree7413e060fe92a12805eb258be81b385c1e001115 /libavformat/avidec.c
parentbd9e4254595efab0aa07ed451a23f492d9ad4e5b (diff)
avformat/avidec: remove warning about deprecated declarations
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 26b02342a9..1e8481e001 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -605,7 +605,11 @@ static int avi_read_header(AVFormatContext *s)
ast = s->streams[0]->priv_data;
av_freep(&s->streams[0]->codecpar->extradata);
av_freep(&s->streams[0]->codecpar);
+#if FF_API_LAVF_AVCTX
+FF_DISABLE_DEPRECATION_WARNINGS
av_freep(&s->streams[0]->codec);
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
if (s->streams[0]->info)
av_freep(&s->streams[0]->info->duration_error);
av_freep(&s->streams[0]->info);