implented full AVPacket decoding