mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
Start adding pixel definitions for planar rgb.
This commit is contained in:
committed by
Michael Niedermayer
parent
96fad826ff
commit
a3e11fa43c
@@ -2704,6 +2704,10 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
|
||||
default:
|
||||
if (CHROMA444){
|
||||
s->avctx->pix_fmt = s->avctx->color_range == AVCOL_RANGE_JPEG ? PIX_FMT_YUVJ444P : PIX_FMT_YUV444P;
|
||||
if (s->avctx->colorspace == AVCOL_SPC_RGB) {
|
||||
s->avctx->pix_fmt = PIX_FMT_GBR24P;
|
||||
av_log(h->s.avctx, AV_LOG_DEBUG, "Detected GBR colorspace.\n");
|
||||
}
|
||||
}else if (CHROMA422) {
|
||||
s->avctx->pix_fmt = s->avctx->color_range == AVCOL_RANGE_JPEG ? PIX_FMT_YUVJ422P : PIX_FMT_YUV422P;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user