[MPlayer-dev-eng] [PATCH]Add Dirac support via libavcodec and libavformat

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Jul 18 19:22:35 CEST 2008


On Fri, Jul 18, 2008 at 01:02:39PM +1000, Anuradha Suraparaju wrote:
> +echocheck "libdirac"
> +if test "$_libdirac_lavc" = auto ; then
> +  cat > $TMPC << EOF
> +#include <libdirac_encoder/dirac_encoder.h>
> +#include <libdirac_decoder/dirac_parser.h>
> +int main(void) 
> +{
> +    dirac_encoder_context_t enc_ctx;
> +    dirac_decoder_t *dec_handle;
> +    dirac_encoder_context_init(&enc_ctx, VIDEO_FORMAT_SD_576I50); 
> +    dec_handle = dirac_decoder_init(0);
> +	if (dec_handle)
> +        dirac_decoder_close(dec_handle);
> +    return 0;
> +}
> +EOF
> +  _libdirac_lavc=no
> +    cc_check `$_pkg_config --silence-errors --cflags dirac` `$_pkg_config --libs dirac` && _libdirac_lavc=yes 
> +fi

This tries to run a possibly nonsense cc command when pkg_config is not
available. See the other checks that use pkg_config how to do it. In
particular it involves using pkg_config --exists.
I do not like depending on pkg-config but it seem that with dirac any
other solution would be a pain.

> +videocodec fflibschroedinger
> +  info "DIRAC (through ffmpeg libdirac)"

copy-and-paste bug?



More information about the MPlayer-dev-eng mailing list