]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_ps.c
Merge remote-tracking branch 'qatar/master'
[ffmpeg] / libavcodec / h264_ps.c
index 82b4e6740e77c2ff5619f00c647f6e73807b6b87..261e2d27190b04389c98774f20adf04c1c3dfe3b 100644 (file)
@@ -522,6 +522,9 @@ int ff_h264_decode_picture_parameter_set(H264Context *h, int bit_length){
     if(pps_id >= MAX_PPS_COUNT) {
         av_log(h->s.avctx, AV_LOG_ERROR, "pps_id (%d) out of range\n", pps_id);
         return -1;
+    } else if (h->sps.bit_depth_luma > 10) {
+        av_log(h->s.avctx, AV_LOG_ERROR, "Unimplemented luma bit depth=%d (max=10)\n", h->sps.bit_depth_luma);
+        return AVERROR_PATCHWELCOME;
     }
 
     pps= av_mallocz(sizeof(PPS));