On Sun Jan 18 2015 at 11:45:54 AM Georg Lippitsch <georg.lippit...@gmx.at>
wrote:
>
> @@ -379,6 +380,18 @@ av_cold int ff_decklink_read_header(AVFormatContext
> *avctx)
>      ctx->list_devices = cctx->list_devices;
>      ctx->list_formats = cctx->list_formats;
>      ctx->preroll      = cctx->preroll;
> +    if (cctx->channels != 2 && cctx->channels != 8 && cctx->channels !=
> 16) {
> +        av_log(avctx, AV_LOG_ERROR, "Unsupported number of channels!"
> +               " Only 2, 8 or 16 channels are supported.\n");
> +        return AVERROR(EIO);
>
EINVAL

> +    }
> +    if (cctx->audiodepth != 16 && cctx->audiodepth != 32) {
> +        av_log(avctx, AV_LOG_ERROR, "Unsupported audio bit depth!"
> +               " Only 16 or 32 bit are supported.\n");
> +        return AVERROR(EIO);
>
EINVAL

> +    }
> +    ctx->channels     = cctx->channels;
> +    ctx->audiodepth   = cctx->audiodepth;
>      cctx->ctx = ctx;
>
>      iter = CreateDeckLinkIteratorInstance();
>

Timothy
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to