aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorThemaister2011-10-08 21:54:20 +0200
committerMichael Niedermayer2011-10-08 23:19:14 +0200
commita3e11fa43ce144fc1f4d1c9f81b7de8f18ff628f (patch)
tree3e2d49a0d00f892e05add8bad55d18957a90c3c8 /libavcodec
parent96fad826ffde544591c850bfaf0bcce530fffaab (diff)
Start adding pixel definitions for planar rgb.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h264.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index df24bcf53a..05797f9455 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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{