[FFmpeg-cvslog] avcodec/tableprint_vlc: Fix building with hardcoded tables

Andreas Rheinhardt git at videolan.org
Fri Jul 23 16:03:07 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Jul 23 01:00:13 2021 +0200| [5be809fed905cc8aebaa20a10548a8341f3d6425] | committer: Andreas Rheinhardt

avcodec/tableprint_vlc: Fix building with hardcoded tables

This has been broken in 25c8507818d8559a6654a5b30a0f8aae11a48181,
because the hacks for headers that are incompatible with building
for the host in libavcodec/tableprint_vlc.h have not been adjusted.

Moving AV_INPUT_BUFFER_PADDING_SIZE to defs.h which is valid for
both the target as well as the host allowed to remove some of the hacks.

Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavcodec/tableprint_vlc.h | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/tableprint_vlc.h b/libavcodec/tableprint_vlc.h
index b3ff36562b..0cbd7a9d2b 100644
--- a/libavcodec/tableprint_vlc.h
+++ b/libavcodec/tableprint_vlc.h
@@ -33,9 +33,7 @@
 #define av_realloc_f(p, o, n) NULL
 #define av_free(p) while(0)
 #define av_freep(p) while(0)
-#define AVCODEC_AVCODEC_H
-#define AVCODEC_INTERNAL_H
-#define AV_INPUT_BUFFER_PADDING_SIZE 64 // the value does not matter for this
+#define AVUTIL_INTERNAL_H
 #define avpriv_request_sample(...)
 #include "tableprint.h"
 #include "get_bits.h"



More information about the ffmpeg-cvslog mailing list