[Libav-user] get frame type

Zanelli Franco fzanelli at tecnosens.it
Mon Mar 19 11:40:51 CET 2012


Hello,
I'm decoding a sequnce of h264 coded frame, and I have the following 
variables:

AVCodecContext *codecCtx;
AVFrame *avFrame;
AVPacket *avPacket;

..... initialize variables .....

int got_picture;
int len = avcodec_decode_video2(codecCtx, avFrame, &got_picture, avPacket);

at this point, is it possible to get the input frame type (intra, P or B 
frame)?

thank you
franco


More information about the Libav-user mailing list