Can I get the frame type from raw video data?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Can I get the frame type from raw video data?

Thomas Rehaag
is there any way to get the frame type (P and B) after calling
av_read_frame(pFormatCtx, &avPacket) on an Mpeg2 file?
I only know, that if(avPacket.flags) I've got an I-frame. And if I could
rely upon dts and pts, I think it should be possible to decide, what's a
P- and a B-frame. But I can't.

Best Regards,

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