diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-27 15:16:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-27 15:28:18 +0200 |
commit | 28a613b09b712494b8a82d00112d4e6e97a0df0a (patch) | |
tree | 53aa02ea38ded5c773c0a32f9b99162319b04c97 /libavcodec/h264.h | |
parent | dfacef9e735461e72a05e683da06bda5ea9c5d8e (diff) | |
download | ffmpeg-streaming-28a613b09b712494b8a82d00112d4e6e97a0df0a.zip ffmpeg-streaming-28a613b09b712494b8a82d00112d4e6e97a0df0a.tar.gz |
h264: dont mess with chroma planes for grayscale h264.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index d0dfca3..7739754 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -87,6 +87,7 @@ #define CABAC h->pps.cabac #endif +#define CHROMA (h->sps.chroma_format_idc) #define CHROMA422 (h->sps.chroma_format_idc == 2) #define CHROMA444 (h->sps.chroma_format_idc == 3) |