I'm no expert, but it would not surprise me much if the flag indicated only the beginning of the key frame, and not that it contains an entire key frame... Also, I'm not sure that you can really rely on it, the AVFrame->pict_type is much more reliable
2014-04-03 11:18 GMT+02:00 Andrey Utkin <[email protected]>: > 2014-04-03 11:24 GMT+03:00 Dídac Pérez <[email protected]>: > > Hi Andrey, > > > > PLEASE: I am not sure what I am about to say (better if somebody can > correct > > me). > > > > I think that if you try to decode a AVPacket it may not return the actual > > packet, but the previous one. This is because the bidirectional > prediction. > > This means that maybe you will decode the AVPacket with the keyframe in > the > > next iteration using the next AVPacket. > > Ok, i understand that decoding more will solve the problem, but it > don't understand why the AVPacket is marked as keyframe then, and i > don't know what exactly is the kind of frame which gives such > situation (packet is marked as keyframe, but decoding doesn't give a > picture). > > -- > Andrey Utkin > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
