You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-09-16 08:36:51 +02:00
avcodec/pcm_tablegen: Fix hardcoded-tables if alaw,mulaw,vidc codecs disabled
Since ae448e00af
the various
tableinit functions are not compiled unconditionally any more,
so that pcm_tablegen.c (which creates the hardcoded tables)
needs to be updated.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -21,21 +21,27 @@
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "config_components.h"
|
||||
#define CONFIG_HARDCODED_TABLES 0
|
||||
#include "pcm_tablegen.h"
|
||||
#include "tableprint.h"
|
||||
|
||||
int main(void)
|
||||
{
|
||||
pcm_alaw_tableinit();
|
||||
pcm_ulaw_tableinit();
|
||||
pcm_vidc_tableinit();
|
||||
|
||||
write_fileheader();
|
||||
|
||||
#if CONFIG_PCM_ALAW_ENCODER
|
||||
pcm_alaw_tableinit();
|
||||
WRITE_ARRAY("static const", uint8_t, linear_to_alaw);
|
||||
#endif
|
||||
#if CONFIG_PCM_MULAW_ENCODER
|
||||
pcm_ulaw_tableinit();
|
||||
WRITE_ARRAY("static const", uint8_t, linear_to_ulaw);
|
||||
#endif
|
||||
#if CONFIG_PCM_VIDC_ENCODER
|
||||
pcm_vidc_tableinit();
|
||||
WRITE_ARRAY("static const", uint8_t, linear_to_vidc);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user