/* update flags */
-    if(is_intra_only(st->codec))
-        pkt->flags |= AV_PKT_FLAG_KEY;
+    if (st->codec->codec->capabilities&  CODEC_CAP_INTRA_ONLY)
+        pkt->flags |= AV_PKT_FLAG_KEY;  /* If the codec is an intra codec 
always set the keyframe flag */
      else if (pc) {
          pkt->flags = 0;
          /* keyframe computation */

Is st->codec->codec always non-NULL here?

-Justin

No, that's what needs fixing before the patch is ok.

MvH
Benjamin Larsson
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to