[Libav-user] get frame type

Carl Eugen Hoyos cehoyos at ag.or.at
Mon Mar 19 11:54:11 CET 2012


Zanelli Franco <fzanelli at ...> writes:

> 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)?

Did you try to read avFrame->pict_type ?

Carl Eugen



More information about the Libav-user mailing list