]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h264_ps.c
zmbv: Fix keyframe fault protextion.
[ffmpeg] / libavcodec / h264_ps.c
index ad364fb8f2bf5e55eedf1aa279622c85a8c4f77e..3184cadb2149dfd08e40d931430fe8cf1c86c2a9 100644 (file)
@@ -488,8 +488,11 @@ build_qp_table(PPS *pps, int t, int index, const int depth)
 static int more_rbsp_data_in_pps(H264Context *h, PPS *pps)
 {
     const SPS *sps = h->sps_buffers[pps->sps_id];
-    if (sps->constraint_set_flags & 7) {
-        av_log(h->s.avctx, AV_LOG_WARNING,
+    int profile_idc = sps->profile_idc;
+
+    if ((profile_idc == 66 || profile_idc == 77 ||
+         profile_idc == 88) && (sps->constraint_set_flags & 7)) {
+        av_log(h->s.avctx, AV_LOG_VERBOSE,
                "Current profile doesn't provide more RBSP data in PPS, skipping\n");
         return 0;
     }