[FFmpeg-cvslog] avformat/avidec: remove warning about deprecated declarations

James Almer git at videolan.org
Sun Sep 25 22:06:19 EEST 2016


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Sun Sep 25 16:03:21 2016 -0300| [aa0dc698dba8ebf1e005ff0f948fe7783cd73364] | committer: James Almer

avformat/avidec: remove warning about deprecated declarations

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aa0dc698dba8ebf1e005ff0f948fe7783cd73364
---

 libavformat/avidec.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 26b0234..1e8481e 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);



More information about the ffmpeg-cvslog mailing list