mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
lavd/decklink_dec: Do not claim to output transparency information.
This commit is contained in:
parent
41569bbc66
commit
f49c129dd4
@ -965,13 +965,13 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
|
|||||||
case bmdFormat8BitARGB:
|
case bmdFormat8BitARGB:
|
||||||
st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
|
st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
|
||||||
st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format);;
|
st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format);;
|
||||||
st->codecpar->format = AV_PIX_FMT_ARGB;
|
st->codecpar->format = AV_PIX_FMT_0RGB;
|
||||||
st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
|
st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
|
||||||
break;
|
break;
|
||||||
case bmdFormat8BitBGRA:
|
case bmdFormat8BitBGRA:
|
||||||
st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
|
st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
|
||||||
st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format);
|
st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format);
|
||||||
st->codecpar->format = AV_PIX_FMT_BGRA;
|
st->codecpar->format = AV_PIX_FMT_BGR0;
|
||||||
st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
|
st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
|
||||||
break;
|
break;
|
||||||
case bmdFormat10BitRGB:
|
case bmdFormat10BitRGB:
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
#define LIBAVDEVICE_VERSION_MAJOR 57
|
#define LIBAVDEVICE_VERSION_MAJOR 57
|
||||||
#define LIBAVDEVICE_VERSION_MINOR 9
|
#define LIBAVDEVICE_VERSION_MINOR 9
|
||||||
#define LIBAVDEVICE_VERSION_MICRO 101
|
#define LIBAVDEVICE_VERSION_MICRO 102
|
||||||
|
|
||||||
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
|
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
|
||||||
LIBAVDEVICE_VERSION_MINOR, \
|
LIBAVDEVICE_VERSION_MINOR, \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user