[MPlayer-dev-eng] [PATCH]SPDIF pass through decoder

Diego Biurrun diego at biurrun.de
Mon Oct 10 15:27:12 CEST 2011


On Mon, Oct 10, 2011 at 04:24:24PM +0900, Naoya OYAMA wrote:
> Patch updated.
> 
> --- libmpcodecs/ad_spdif.c	(revision 0)
> +++ libmpcodecs/ad_spdif.c	(revision 0)
> @@ -0,0 +1,310 @@
> +static int read_packet(void *p, uint8_t *buf, int buf_size)
> +{
> +    //do nothing.
> +    return 0;
> +}
> +
> +static int64_t seek(void *p, int64_t offset, int whence)
> +{
> +    //do nothing.
> +    return 0;
> +}

pointless comments

> +    case CODEC_ID_DTS: // FORCE USE DTS-HD
> +        opt = av_opt_find(&lavf_ctx->oformat->priv_class,
> +                          "dtshd_rate", NULL, 0, 0);
> +        if (!opt)
> +            goto fail;
> +        dtshd_rate                      = lavf_ctx->priv_data + opt->offset;

libmpcodecs/ad_spdif.c:182: warning: pointer of type 'void *' used in arithmetic

> +    fail:
> +    uninit(sh);
> +    return 0;

Please place the goto label in the first column.

Diego


More information about the MPlayer-dev-eng mailing list