[FFmpeg-devel] [PATCH 6/8] avcodec/dump_extradata_bsf: Remove unnecessary header

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Tue Apr 21 05:31:51 EEST 2020


Since 33d18982fa03feb061c8f744a4f0a9175c1f63ab (the commit that
introduced the new bsf API) allocating an enlarged buffer in case
extradata needs to be added to a packet is done via av_new_packet(),
so that libavutil/mem.h is no longer needed.

Furthermore, remove libavutil/log.h. This function uses something
provided by it (an AVClass), yet it does so only for AVOptions, not
for logging purposes (there is no av_log() here), so only including
libavutil/opt.h seems appropriate.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavcodec/dump_extradata_bsf.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/dump_extradata_bsf.c b/libavcodec/dump_extradata_bsf.c
index 0b6d404792..fbff795380 100644
--- a/libavcodec/dump_extradata_bsf.c
+++ b/libavcodec/dump_extradata_bsf.c
@@ -23,8 +23,6 @@
 #include "avcodec.h"
 #include "bsf.h"
 
-#include "libavutil/log.h"
-#include "libavutil/mem.h"
 #include "libavutil/opt.h"
 
 enum DumpFreq {
-- 
2.20.1



More information about the ffmpeg-devel mailing list