After reading a frame like this:

AVFormatContext *ifmt_ctx = NULL;
AVPacket pkt = { .data = NULL, .size = 0 };
...

if ((ret = av_read_frame(ifmt_ctx, &pkt)) < 0)
            break;

How to identify this video frame is IDR frame or not ?

as far as I know,
(pkt.flags & AV_PKT_FLAG_KEY)  only show it is a keyframe,
but can not identify is a IDR frame.

PS: video codec is 264 or 265
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to