On Mon, Mar 23, 2015 at 2:23 PM, Luca Barbato <[email protected]> wrote: > On 23/03/15 12:45, Hendrik Leppkes wrote: >> --- >> configure | 4 + >> libavcodec/Makefile | 1 + >> libavcodec/allcodecs.c | 1 + >> libavcodec/libdcadec.c | 197 >> +++++++++++++++++++++++++++++++++++++++++++++++++ >> 4 files changed, 203 insertions(+) >> create mode 100644 libavcodec/libdcadec.c >> >> diff --git a/configure b/configure >> index 3c38a8c..6eaac29 100755 >> --- a/configure >> +++ b/configure >> @@ -184,6 +184,7 @@ External library support: >> --enable-libcdio enable audio CD grabbing with libcdio >> --enable-libdc1394 enable IIDC-1394 grabbing using libdc1394 >> and libraw1394 [no] >> + --enable-libdcadec enable DCA decoding via libdcadec [no] >> --enable-libfaac enable AAC encoding via libfaac [no] >> --enable-libfdk-aac enable AAC de/encoding via libfdk-aac [no] >> --enable-libfreetype enable libfreetype [no] >> @@ -1149,6 +1150,7 @@ EXTERNAL_LIBRARY_LIST=" >> libbs2b >> libcdio >> libdc1394 >> + libdcadec >> libfaac >> libfdk_aac >> libfontconfig >> @@ -2004,6 +2006,7 @@ mpeg4video_parser_select="error_resilience h263dsp >> mpeg_er mpegvideo qpeldsp" >> vc1_parser_select="mpegvideo startcode vc1_decoder" >> >> # external libraries >> +libdcadec_decoder_deps="libdcadec" >> libfaac_encoder_deps="libfaac" >> libfaac_encoder_select="audio_frame_queue" >> libfdk_aac_decoder_deps="libfdk_aac" >> @@ -4206,6 +4209,7 @@ enabled avisynth && { { check_header >> "avisynth/avisynth_c.h" && check_l >> enabled frei0r && { check_header frei0r.h || die "ERROR: >> frei0r.h header not found"; } >> enabled gnutls && require_pkg_config gnutls gnutls/gnutls.h >> gnutls_global_init >> enabled libbs2b && require_pkg_config libbs2b bs2b.h bs2b_open >> +enabled libdcadec && require libdcadec libdcadec/dca_context.h >> dcadec_context_create -ldcadec > > I'll get libdcadec a pkgconf file =p > >> + >> + av_assert0(bits_per_sample >= 16 && bits_per_sample <= 24); > > this will be changed with the AVERROR_PATCHWELCOME and a request for > samples. >
The format really doesn't allow anything else, its a sanity check - which is exactly what asserts are designed for. - Hendrik _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
