summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_ps.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_ps.c
parent3775af0fec649f76f91077b987e0925b415a8716 (diff)
downloadffmpeg-streaming-74f77eb048913ad764537f79fd954d2db3f7fd55.zip
ffmpeg-streaming-74f77eb048913ad764537f79fd954d2db3f7fd55.tar.gz
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_ps.c')
-rw-r--r--libavcodec/h264_ps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 637cf27..f0ec0ff 100644
--- a/libavcodec/h264_ps.c
+++ b/libavcodec/h264_ps.c
@@ -338,10 +338,12 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
sps->profile_idc= profile_idc;
sps->constraint_set_flags = constraint_set_flags;
sps->level_idc= level_idc;
+ sps->full_range = -1;
memset(sps->scaling_matrix4, 16, sizeof(sps->scaling_matrix4));
memset(sps->scaling_matrix8, 16, sizeof(sps->scaling_matrix8));
sps->scaling_matrix_present = 0;
+ sps->colorspace = 2; //AVCOL_SPC_UNSPECIFIED
if(sps->profile_idc >= 100){ //high profile
sps->chroma_format_idc= get_ue_golomb_31(&s->gb);
OpenPOWER on IntegriCloud