summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorBIGLER Don (Framatome) <don.bigler@framatome.com>2018-11-01 17:49:37 +0100
committerMarton Balint <cus@passwd.hu>2018-11-01 18:46:05 +0100
commitcb74c33106d08b09ff0a2e395fe0b69828031d63 (patch)
tree711bd83eb0786f5d2c27e4c38af630acd1ba8384 /libavdevice
parentd98fb558be9c53ed6f34c21a59dc27a090153c1d (diff)
downloadffmpeg-cb74c33106d08b09ff0a2e395fe0b69828031d63.tar.gz
avdevice/decklink_dec: fix codec_tag of RGBA formats
Fixes ticket #7505. Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/decklink_dec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/decklink_dec.cpp b/libavdevice/decklink_dec.cpp
index deb8f787ee..9de8fa0c9d 100644
--- a/libavdevice/decklink_dec.cpp
+++ b/libavdevice/decklink_dec.cpp
@@ -1167,14 +1167,14 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx)
break;
case bmdFormat8BitARGB:
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->format = AV_PIX_FMT_0RGB;
+ st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format);
st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
break;
case bmdFormat8BitBGRA:
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->format = AV_PIX_FMT_BGR0;
+ st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format);
st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num);
break;
case bmdFormat10BitRGB: