summaryrefslogtreecommitdiff
path: root/libavcodec/h264_ps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/h264_ps.c')
-rw-r--r--libavcodec/h264_ps.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c
index 2cf8365..2a62ebc 100644
--- a/libavcodec/h264_ps.c
+++ b/libavcodec/h264_ps.c
@@ -354,7 +354,18 @@ int ff_h264_decode_seq_parameter_set(H264Context *h){
return -1;
sps->time_offset_length = 24;
- sps->profile_idc= profile_idc;
+ /*
+ ** if current stream is mvc stream, use mvc profile_idc as
+ ** sps->profile_idc, all here is for report mvc profile_idc
+ ** to player for mvc disable support.
+ ** @Sep 17th, 2013, by hbb.
+ */
+ if ((h->sps.profile_idc !=118) && (h->sps.profile_idc !=128)) {
+ sps->profile_idc = profile_idc;
+ } else {
+ sps->profile_idc = h->sps.profile_idc;
+ }
+
sps->constraint_set_flags = constraint_set_flags;
sps->level_idc= level_idc;
sps->full_range = -1;