[FFmpeg-devel] [PATCH] 32 bit and 8/16 channel audio support for Decklink input
Timothy Gu
timothygu99 at gmail.com
Sun Jan 18 21:53:26 CET 2015
On Sun Jan 18 2015 at 11:45:54 AM Georg Lippitsch <georg.lippitsch at 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
More information about the ffmpeg-devel
mailing list