[vlc-commits] packetizer: h264: fix inferred 4:2:2 on missing chroma_idc

Francois Cartegnie git at videolan.org
Tue Feb 7 15:16:07 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb  7 15:06:38 2017 +0100| [ecace5dff4ad2c174a48c3c28dc838f1e98aed48] | committer: Francois Cartegnie

packetizer: h264: fix inferred 4:2:2 on missing chroma_idc

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ecace5dff4ad2c174a48c3c28dc838f1e98aed48
---

 modules/packetizer/h264_nal.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/packetizer/h264_nal.c b/modules/packetizer/h264_nal.c
index 9bdc866..819666c 100644
--- a/modules/packetizer/h264_nal.c
+++ b/modules/packetizer/h264_nal.c
@@ -324,6 +324,10 @@ static bool h264_parse_sequence_parameter_set_rbsp( bs_t *p_bs,
             }
         }
     }
+    else
+    {
+        p_sps->i_chroma_idc = 1; /* Not present == inferred to 4:2:2 */
+    }
 
     /* Skip i_log2_max_frame_num */
     p_sps->i_log2_max_frame_num = bs_read_ue( p_bs );



More information about the vlc-commits mailing list