Fixes ticket #7505.
Unified · Split
| @@ -1167,14 +1167,14 @@ av_cold int ff_decklink_read_header(AVFormatContext *avctx) · 1166 unmodified lines | |||
| 1167 | break; | 1167 | break; |
| 1168 | case bmdFormat8BitARGB: | 1168 | case bmdFormat8BitARGB: |
| 1169 | st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; | 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 | st->codecpar->format = AV_PIX_FMT_0RGB; | 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 | st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num); | 1172 | st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num); |
| 1173 | break; | 1173 | break; |
| 1174 | case bmdFormat8BitBGRA: | 1174 | case bmdFormat8BitBGRA: |
| 1175 | st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO; | 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 | st->codecpar->format = AV_PIX_FMT_BGR0; | 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 | st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num); | 1178 | st->codecpar->bit_rate = av_rescale(ctx->bmd_width * ctx->bmd_height * 32, st->time_base.den, st->time_base.num); |
| 1179 | break; | 1179 | break; |
| 1180 | case bmdFormat10BitRGB: | 1180 | case bmdFormat10BitRGB: |