summaryrefslogtreecommitdiff
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-08 01:12:46 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-08 03:13:21 +0200
commit74f77eb048913ad764537f79fd954d2db3f7fd55 (patch)
tree5507522e71da854409ecfa3e8f2e1f527f793707 /libavcodec/h264.c
parent3775af0fec649f76f91077b987e0925b415a8716 (diff)
H264: set colorspace and full range to values indicating unspecified by default
Code based on ffdshow Author unknown Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index cb2ce986a9..40da076530 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2670,7 +2670,7 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
}
if(h->sps.video_signal_type_present_flag){
- s->avctx->color_range = h->sps.full_range ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
+ s->avctx->color_range = h->sps.full_range>0 ? AVCOL_RANGE_JPEG : AVCOL_RANGE_MPEG;
if(h->sps.colour_description_present_flag){
s->avctx->color_primaries = h->sps.color_primaries;
s->avctx->color_trc = h->sps.color_trc;