avutil: Make LZO decoder code configure-time selectable
This commit is contained in:
parent
5bac2d0c30
commit
2a91ada828
6
configure
vendored
6
configure
vendored
@ -120,6 +120,7 @@ Component options:
|
|||||||
--disable-dct disable DCT code
|
--disable-dct disable DCT code
|
||||||
--disable-dwt disable DWT code
|
--disable-dwt disable DWT code
|
||||||
--disable-lsp disable LSP code
|
--disable-lsp disable LSP code
|
||||||
|
--disable-lzo disable LZO decoder code
|
||||||
--disable-mdct disable MDCT code
|
--disable-mdct disable MDCT code
|
||||||
--disable-rdft disable RDFT code
|
--disable-rdft disable RDFT code
|
||||||
--disable-fft disable FFT code
|
--disable-fft disable FFT code
|
||||||
@ -1029,6 +1030,7 @@ CONFIG_LIST="
|
|||||||
libxavs
|
libxavs
|
||||||
libxvid
|
libxvid
|
||||||
lsp
|
lsp
|
||||||
|
lzo
|
||||||
mdct
|
mdct
|
||||||
memalign_hack
|
memalign_hack
|
||||||
network
|
network
|
||||||
@ -1437,6 +1439,7 @@ binkaudio_dct_decoder_select="mdct rdft dct sinewin"
|
|||||||
binkaudio_rdft_decoder_select="mdct rdft sinewin"
|
binkaudio_rdft_decoder_select="mdct rdft sinewin"
|
||||||
cavs_decoder_select="golomb mpegvideo"
|
cavs_decoder_select="golomb mpegvideo"
|
||||||
cook_decoder_select="mdct sinewin"
|
cook_decoder_select="mdct sinewin"
|
||||||
|
cscd_decoder_select="lzo"
|
||||||
cscd_decoder_suggest="zlib"
|
cscd_decoder_suggest="zlib"
|
||||||
dca_decoder_select="mdct"
|
dca_decoder_select="mdct"
|
||||||
dnxhd_encoder_select="aandcttables mpegvideoenc"
|
dnxhd_encoder_select="aandcttables mpegvideoenc"
|
||||||
@ -1516,6 +1519,7 @@ msmpeg4v3_encoder_select="h263_encoder"
|
|||||||
mss2_decoder_select="vc1_decoder"
|
mss2_decoder_select="vc1_decoder"
|
||||||
nellymoser_decoder_select="mdct sinewin"
|
nellymoser_decoder_select="mdct sinewin"
|
||||||
nellymoser_encoder_select="mdct sinewin"
|
nellymoser_encoder_select="mdct sinewin"
|
||||||
|
nuv_decoder_select="lzo"
|
||||||
png_decoder_select="zlib"
|
png_decoder_select="zlib"
|
||||||
png_encoder_select="zlib"
|
png_encoder_select="zlib"
|
||||||
qcelp_decoder_select="lsp"
|
qcelp_decoder_select="lsp"
|
||||||
@ -1628,7 +1632,7 @@ eac3_demuxer_select="ac3_parser"
|
|||||||
flac_demuxer_select="flac_parser"
|
flac_demuxer_select="flac_parser"
|
||||||
ipod_muxer_select="mov_muxer"
|
ipod_muxer_select="mov_muxer"
|
||||||
matroska_audio_muxer_select="matroska_muxer"
|
matroska_audio_muxer_select="matroska_muxer"
|
||||||
matroska_demuxer_suggest="zlib bzlib"
|
matroska_demuxer_suggest="bzlib lzo zlib"
|
||||||
mov_demuxer_suggest="zlib"
|
mov_demuxer_suggest="zlib"
|
||||||
mp3_demuxer_select="mpegaudio_parser"
|
mp3_demuxer_select="mpegaudio_parser"
|
||||||
mp4_muxer_select="mov_muxer"
|
mp4_muxer_select="mov_muxer"
|
||||||
|
@ -1011,6 +1011,7 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
|
|||||||
memcpy(pkt_data + header_size, data, isize);
|
memcpy(pkt_data + header_size, data, isize);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if CONFIG_LZO
|
||||||
case MATROSKA_TRACK_ENCODING_COMP_LZO:
|
case MATROSKA_TRACK_ENCODING_COMP_LZO:
|
||||||
do {
|
do {
|
||||||
olen = pkt_size *= 3;
|
olen = pkt_size *= 3;
|
||||||
@ -1028,6 +1029,7 @@ static int matroska_decode_buffer(uint8_t** buf, int* buf_size,
|
|||||||
}
|
}
|
||||||
pkt_size -= olen;
|
pkt_size -= olen;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
#if CONFIG_ZLIB
|
#if CONFIG_ZLIB
|
||||||
case MATROSKA_TRACK_ENCODING_COMP_ZLIB: {
|
case MATROSKA_TRACK_ENCODING_COMP_ZLIB: {
|
||||||
z_stream zstream = {0};
|
z_stream zstream = {0};
|
||||||
@ -1436,14 +1438,17 @@ static int matroska_read_header(AVFormatContext *s)
|
|||||||
"Multiple combined encodings not supported");
|
"Multiple combined encodings not supported");
|
||||||
} else if (encodings_list->nb_elem == 1) {
|
} else if (encodings_list->nb_elem == 1) {
|
||||||
if (encodings[0].type ||
|
if (encodings[0].type ||
|
||||||
(encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP &&
|
(
|
||||||
#if CONFIG_ZLIB
|
#if CONFIG_ZLIB
|
||||||
encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_ZLIB &&
|
encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_ZLIB &&
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_BZLIB
|
#if CONFIG_BZLIB
|
||||||
encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_BZLIB &&
|
encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_BZLIB &&
|
||||||
#endif
|
#endif
|
||||||
encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_LZO)) {
|
#if CONFIG_LZO
|
||||||
|
encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_LZO &&
|
||||||
|
#endif
|
||||||
|
encodings[0].compression.algo != MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP)) {
|
||||||
encodings[0].scope = 0;
|
encodings[0].scope = 0;
|
||||||
av_log(matroska->ctx, AV_LOG_ERROR,
|
av_log(matroska->ctx, AV_LOG_ERROR,
|
||||||
"Unsupported encoding type");
|
"Unsupported encoding type");
|
||||||
|
@ -24,7 +24,6 @@ HEADERS = adler32.h \
|
|||||||
intreadwrite.h \
|
intreadwrite.h \
|
||||||
lfg.h \
|
lfg.h \
|
||||||
log.h \
|
log.h \
|
||||||
lzo.h \
|
|
||||||
mathematics.h \
|
mathematics.h \
|
||||||
md5.h \
|
md5.h \
|
||||||
mem.h \
|
mem.h \
|
||||||
@ -42,6 +41,8 @@ HEADERS = adler32.h \
|
|||||||
version.h \
|
version.h \
|
||||||
xtea.h \
|
xtea.h \
|
||||||
|
|
||||||
|
HEADERS-$(CONFIG_LZO) += lzo.h
|
||||||
|
|
||||||
ARCH_HEADERS = bswap.h \
|
ARCH_HEADERS = bswap.h \
|
||||||
intmath.h \
|
intmath.h \
|
||||||
intreadwrite.h \
|
intreadwrite.h \
|
||||||
@ -71,7 +72,6 @@ OBJS = adler32.o \
|
|||||||
log.o \
|
log.o \
|
||||||
log2.o \
|
log2.o \
|
||||||
log2_tab.o \
|
log2_tab.o \
|
||||||
lzo.o \
|
|
||||||
mathematics.o \
|
mathematics.o \
|
||||||
md5.o \
|
md5.o \
|
||||||
mem.o \
|
mem.o \
|
||||||
@ -89,6 +89,8 @@ OBJS = adler32.o \
|
|||||||
utils.o \
|
utils.o \
|
||||||
xtea.o \
|
xtea.o \
|
||||||
|
|
||||||
|
OBJS-$(CONFIG_LZO) += lzo.o
|
||||||
|
|
||||||
OBJS += $(COMPAT_OBJS:%=../compat/%)
|
OBJS += $(COMPAT_OBJS:%=../compat/%)
|
||||||
|
|
||||||
SKIPHEADERS = old_pix_fmts.h
|
SKIPHEADERS = old_pix_fmts.h
|
||||||
|
Loading…
x
Reference in New Issue
Block a user