[Libav-user] get frame type

Zanelli Franco fzanelli at tecnosens.it
Mon Mar 19 12:03:30 CET 2012


Il 19/03/2012 11:54, Carl Eugen Hoyos ha scritto:
> 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
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

no, i didn't.
I tried avFrame->type and it got always the same value. I didn't see 
that parameter.
thank you

franco


More information about the Libav-user mailing list