I forgot to ask if I always need to decod the video packet to know that
this is a I-frame.

I would like to avoid decoding every single frame to know that it's a
keyframe

This is what I do:
int err = avcodec_decode_video(videoCodec(), m_currentFrame,
&got_picture, pkt.data, pkt.size);

After decoding I can access key_frame parameter
m_currentFrame->key_frame 


Thanks

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to