mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01: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 <stdlib.h>
|
||||||
|
#include "config_components.h"
|
||||||
#define CONFIG_HARDCODED_TABLES 0
|
#define CONFIG_HARDCODED_TABLES 0
|
||||||
#include "pcm_tablegen.h"
|
#include "pcm_tablegen.h"
|
||||||
#include "tableprint.h"
|
#include "tableprint.h"
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
pcm_alaw_tableinit();
|
|
||||||
pcm_ulaw_tableinit();
|
|
||||||
pcm_vidc_tableinit();
|
|
||||||
|
|
||||||
write_fileheader();
|
write_fileheader();
|
||||||
|
|
||||||
|
#if CONFIG_PCM_ALAW_ENCODER
|
||||||
|
pcm_alaw_tableinit();
|
||||||
WRITE_ARRAY("static const", uint8_t, linear_to_alaw);
|
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);
|
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);
|
WRITE_ARRAY("static const", uint8_t, linear_to_vidc);
|
||||||
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user