Fixes ticket #7505.
Showing the changes to libavdevice/decklink_dec.cpp (1 of 1 file). Show all
Unified · Split
| @@ -1167,14 +1167,14 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 1166 unmodified lines | ||
| 1167 | 1167 | break; |
| 1168 | 1168 | case bmdFormat8BitARGB: |
| 1169 | 1169 | st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; |
| 1170 | − st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format); | |
| 1171 | 1170 | st->codecpar->format = AV_PIX_FMT_0RGB; |
| 1171 | + st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format); | |
| 1172 | 1172 | st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num); |
| 1173 | 1173 | break; |
| 1174 | 1174 | case bmdFormat8BitBGRA: |
| 1175 | 1175 | st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; |
| 1176 | − st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format); | |
| 1177 | 1176 | st->codecpar->format = AV_PIX_FMT_BGR0; |
| 1177 | + st->codecpar->codec_tag = avcodec_pix_fmt_to_codec_tag((enum AVPixelFormat)st->codecpar->format); | |
| 1178 | 1178 | st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num); |
| 1179 | 1179 | break; |
| 1180 | 1180 | case bmdFormat10BitRGB: |