[Libav-user] keyframe not a keyframe?
Michael R. Hines
michael at hinespot.com
Wed Dec 26 11:15:36 CET 2012
After decoding a packet containing AV_PKT_FLAG_KEY in the flags,
I was expecting to get I-frames, but instead I got P-frames:
The following statement:
printf("packet flags: %d picture type: %c\n", inPacket.flags,
Returns the output:
packet flags: 1 picture type: P
When I was expecting:
packet flags: 1 picture type: I
Where '1' == AV_PKT_FLAG_KEY.
Is this behavior correct? (I'm decoding MPEG2 video).
More information about the Libav-user